diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index 47d3081a..ccc5c9f0 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -48,7 +48,7 @@ import xbmcvfs import clientinfo import downloadutils from utils import window, settings, language as lang, tryDecode, tryEncode, \ - DateToKodi + DateToKodi, KODILANGUAGE from PlexFunctions import PLEX_TO_KODI_TIMEFACTOR, PMSHttpsEnabled import embydb_functions as embydb @@ -1932,7 +1932,6 @@ class API(): else: log.info('Start movie set/collection lookup on themoviedb') - KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1) apiKey = settings('themoviedbAPIKey') if media_type == 'show': media_type = 'tv' @@ -2068,7 +2067,6 @@ class API(): mediaId: IMDB id for movies, tvdb id for TV shows """ item = self.item.attrib - KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1) api_key = settings('FanArtTVAPIKey') typus = item.get('type') if typus == 'show': diff --git a/resources/lib/utils.py b/resources/lib/utils.py index f9a9dbcf..52d5c415 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -29,6 +29,8 @@ addonName = 'PlexKodiConnect' WINDOW = xbmcgui.Window(10000) ADDON = xbmcaddon.Addon(id='plugin.video.plexkodiconnect') +KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1) + ############################################################################### # Main methods