Merge pull request #1420 from croneter/fix-settings

Hopefully fix RuntimeError: no add-on id "plugin.video.plexkodiconnect"
This commit is contained in:
croneter 2021-03-20 14:40:36 +01:00 committed by GitHub
commit cb6ba50904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,7 @@ def settings(setting, value=None):
"""
# We need to instantiate every single time to read changed variables!
with SETTINGS_LOCK:
addon = xbmcaddon.Addon(id='plugin.video.plexkodiconnect')
addon = xbmcaddon.Addon()
if value is not None:
# Takes string or unicode by default!
addon.setSetting(try_encode(setting), try_encode(value))