diff --git a/resources/lib/dialogs/servermanual.py b/resources/lib/dialogs/servermanual.py index 861257a8..78767d3c 100644 --- a/resources/lib/dialogs/servermanual.py +++ b/resources/lib/dialogs/servermanual.py @@ -1,13 +1,11 @@ # -*- coding: utf-8 -*- ############################################################################### from logging import getLogger -from os.path import join import xbmcgui import connect.connectionmanager as connectionmanager -from utils import language as lang, tryEncode, tryDecode -import variables as v +from utils import language as lang, tryDecode ############################################################################### log = getLogger("PLEX."+__name__) @@ -28,8 +26,6 @@ ERROR = { 'Invalid': 1, 'Empty': 2 } - -MEDIA = tryEncode(join(v.ADDON_PATH, 'resources', 'skins', 'default', 'media')) ############################################################################### diff --git a/resources/lib/variables.py b/resources/lib/variables.py index bddcb50a..de13b26b 100644 --- a/resources/lib/variables.py +++ b/resources/lib/variables.py @@ -28,6 +28,7 @@ ADDON_NAME = 'PlexKodiConnect' ADDON_ID = 'plugin.video.plexkodiconnect' ADDON_VERSION = _ADDON.getAddonInfo('version') ADDON_PATH = tryDecode(_ADDON.getAddonInfo('path')) +MEDIA_PATH = join(ADDON_PATH, 'resources', 'skins', 'default', 'media') KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1) KODIVERSION = int(xbmc.getInfoLabel("System.BuildVersion")[:2])