From 8d11fa2a90dfb1abc6264e6e0d5f86b1a25a6e28 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Wed, 16 Nov 2016 14:27:11 +0100 Subject: [PATCH] Move KODILANGUAGE --- resources/lib/PlexAPI.py | 4 +--- resources/lib/utils.py | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) 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