Move KODILANGUAGE

This commit is contained in:
tomkat83 2016-11-16 14:27:11 +01:00
parent 569a816cb3
commit 8d11fa2a90
2 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ import xbmcvfs
import clientinfo import clientinfo
import downloadutils import downloadutils
from utils import window, settings, language as lang, tryDecode, tryEncode, \ from utils import window, settings, language as lang, tryDecode, tryEncode, \
DateToKodi DateToKodi, KODILANGUAGE
from PlexFunctions import PLEX_TO_KODI_TIMEFACTOR, PMSHttpsEnabled from PlexFunctions import PLEX_TO_KODI_TIMEFACTOR, PMSHttpsEnabled
import embydb_functions as embydb import embydb_functions as embydb
@ -1932,7 +1932,6 @@ class API():
else: else:
log.info('Start movie set/collection lookup on themoviedb') log.info('Start movie set/collection lookup on themoviedb')
KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1)
apiKey = settings('themoviedbAPIKey') apiKey = settings('themoviedbAPIKey')
if media_type == 'show': if media_type == 'show':
media_type = 'tv' media_type = 'tv'
@ -2068,7 +2067,6 @@ class API():
mediaId: IMDB id for movies, tvdb id for TV shows mediaId: IMDB id for movies, tvdb id for TV shows
""" """
item = self.item.attrib item = self.item.attrib
KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1)
api_key = settings('FanArtTVAPIKey') api_key = settings('FanArtTVAPIKey')
typus = item.get('type') typus = item.get('type')
if typus == 'show': if typus == 'show':

View file

@ -29,6 +29,8 @@ addonName = 'PlexKodiConnect'
WINDOW = xbmcgui.Window(10000) WINDOW = xbmcgui.Window(10000)
ADDON = xbmcaddon.Addon(id='plugin.video.plexkodiconnect') ADDON = xbmcaddon.Addon(id='plugin.video.plexkodiconnect')
KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1)
############################################################################### ###############################################################################
# Main methods # Main methods