From c2afb9b3eccef7148a6aca9da7578b1aabf27502 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Tue, 17 Dec 2019 09:09:34 -0600 Subject: [PATCH] decode text to utf-8 --- resources/lib/guisettings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/guisettings.py b/resources/lib/guisettings.py index 6c19409..04abb15 100644 --- a/resources/lib/guisettings.py +++ b/resources/lib/guisettings.py @@ -17,8 +17,7 @@ class GuiSettingsManager: def run(self): #get a list of all the settings we can manipulate via json - utils.log(xbmc.executeJSONRPC('{"jsonrpc":"2.0", "id":1, "method":"Settings.GetSettings","params":{"level":"advanced"}}')) - json_response = json.loads(utils.encode(xbmc.executeJSONRPC('{"jsonrpc":"2.0", "id":1, "method":"Settings.GetSettings","params":{"level":"advanced"}}'))) + json_response = json.loads(xbmc.executeJSONRPC('{"jsonrpc":"2.0", "id":1, "method":"Settings.GetSettings","params":{"level":"advanced"}}').decode('utf-8')) settings = json_response['result']['settings'] currentSettings = {}