Explicitly instantiate Addon() for PKC
This commit is contained in:
parent
71f4fa0f76
commit
4baee9afc1
3 changed files with 3 additions and 4 deletions
|
@ -114,7 +114,7 @@ def settings(setting, value=None):
|
|||
"""
|
||||
# We need to instantiate every single time to read changed variables!
|
||||
with SETTINGS_LOCK:
|
||||
addon = xbmcaddon.Addon()
|
||||
addon = xbmcaddon.Addon('plugin.video.plexkodiconnect')
|
||||
if value is not None:
|
||||
# Takes string or unicode by default!
|
||||
addon.setSetting(setting, value)
|
||||
|
|
|
@ -21,7 +21,7 @@ MARK_PLAYED_AT = 0.9
|
|||
# watched?
|
||||
IGNORE_SECONDS_AT_START = 60
|
||||
|
||||
_ADDON = Addon()
|
||||
_ADDON = Addon('plugin.video.plexkodiconnect')
|
||||
ADDON_NAME = 'PlexKodiConnect'
|
||||
ADDON_ID = 'plugin.video.plexkodiconnect'
|
||||
ADDON_VERSION = _ADDON.getAddonInfo('version')
|
||||
|
|
|
@ -994,8 +994,7 @@ class WindowProperty(object):
|
|||
|
||||
class GlobalProperty(object):
|
||||
def __init__(self, prop, val='1', end=None):
|
||||
import xbmcaddon
|
||||
self._addonID = xbmcaddon.Addon().getAddonInfo('id')
|
||||
self._addonID = 'plugin.video.plexkodiconnect'
|
||||
self.prop = prop
|
||||
self.val = val
|
||||
self.end = end
|
||||
|
|
Loading…
Reference in a new issue