From 6b6464dac36fa64b3cf91910706034b05e82420e Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 20 Mar 2021 10:33:59 +0100 Subject: [PATCH] Hopefully fix RuntimeError: no add-on id "plugin.video.plexkodiconnect" --- resources/lib/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 5f14e5ea..5fc9a46a 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -118,10 +118,10 @@ 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)) + # Takes string or unicode by default! + addon.setSetting(try_encode(setting), try_encode(value)) else: # Should return unicode by default, but just in case return try_decode(addon.getSetting(setting))