Move media path to variables

This commit is contained in:
tomkat83 2017-07-27 17:43:51 +02:00
parent c1098f22a4
commit af0ac26045
2 changed files with 2 additions and 5 deletions

View file

@ -1,13 +1,11 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################### ###############################################################################
from logging import getLogger from logging import getLogger
from os.path import join
import xbmcgui import xbmcgui
import connect.connectionmanager as connectionmanager import connect.connectionmanager as connectionmanager
from utils import language as lang, tryEncode, tryDecode from utils import language as lang, tryDecode
import variables as v
############################################################################### ###############################################################################
log = getLogger("PLEX."+__name__) log = getLogger("PLEX."+__name__)
@ -28,8 +26,6 @@ ERROR = {
'Invalid': 1, 'Invalid': 1,
'Empty': 2 'Empty': 2
} }
MEDIA = tryEncode(join(v.ADDON_PATH, 'resources', 'skins', 'default', 'media'))
############################################################################### ###############################################################################

View file

@ -28,6 +28,7 @@ ADDON_NAME = 'PlexKodiConnect'
ADDON_ID = 'plugin.video.plexkodiconnect' ADDON_ID = 'plugin.video.plexkodiconnect'
ADDON_VERSION = _ADDON.getAddonInfo('version') ADDON_VERSION = _ADDON.getAddonInfo('version')
ADDON_PATH = tryDecode(_ADDON.getAddonInfo('path')) ADDON_PATH = tryDecode(_ADDON.getAddonInfo('path'))
MEDIA_PATH = join(ADDON_PATH, 'resources', 'skins', 'default', 'media')
KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1) KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1)
KODIVERSION = int(xbmc.getInfoLabel("System.BuildVersion")[:2]) KODIVERSION = int(xbmc.getInfoLabel("System.BuildVersion")[:2])