Merge pull request #1409 from croneter/fix-runtimeerror

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

View file

@ -113,7 +113,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(setting, value)