attempt to force encoding after GetSetting call

This commit is contained in:
robweber 2019-11-30 09:33:21 -06:00
parent 9ae5545f6c
commit abb27a7251

View File

@ -17,7 +17,7 @@ class GuiSettingsManager:
def run(self):
#get a list of all the settings we can manipulate via json
json_response = json.loads(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"}}')))
settings = json_response['result']['settings']
currentSettings = {}