Move media path to variables
This commit is contained in:
parent
c1098f22a4
commit
af0ac26045
2 changed files with 2 additions and 5 deletions
|
@ -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'))
|
||||
###############################################################################
|
||||
|
||||
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue