Merge pull request #1409 from croneter/fix-runtimeerror
Hopefully fix RuntimeError: no add-on id "plugin.video.plexkodiconnect"
This commit is contained in:
commit
6929a4a3a7
1 changed files with 3 additions and 3 deletions
|
@ -113,10 +113,10 @@ def settings(setting, value=None):
|
||||||
"""
|
"""
|
||||||
# We need to instantiate every single time to read changed variables!
|
# We need to instantiate every single time to read changed variables!
|
||||||
with SETTINGS_LOCK:
|
with SETTINGS_LOCK:
|
||||||
addon = xbmcaddon.Addon(id='plugin.video.plexkodiconnect')
|
addon = xbmcaddon.Addon()
|
||||||
if value is not None:
|
if value is not None:
|
||||||
# Takes string or unicode by default!
|
# Takes string or unicode by default!
|
||||||
addon.setSetting(setting, value)
|
addon.setSetting(setting, value)
|
||||||
else:
|
else:
|
||||||
# Should return unicode by default, but just in case
|
# Should return unicode by default, but just in case
|
||||||
return addon.getSetting(setting)
|
return addon.getSetting(setting)
|
||||||
|
|
Loading…
Reference in a new issue