From 93151eff4e42f1f776c854a196491673fec4ce3b Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Mon, 7 Mar 2022 20:12:48 +0100 Subject: [PATCH] Fix Community Channels --- specials/community.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specials/community.py b/specials/community.py index a5ba8d5a..1760cee1 100644 --- a/specials/community.py +++ b/specials/community.py @@ -688,7 +688,7 @@ def load_json(item, no_order=False): if url.startswith('http'): json_file = httptools.downloadpage(url).data else: - json_file = open(url, "r").read() + json_file = open(url, "r", encoding='utf-8').read() if no_order or filterkey: json = jsontools.load(json_file) else: @@ -753,7 +753,7 @@ def set_extra_values(item, json, path): ret.url['videolibrary'] = json.get('videolibrary', True) ret.url['autoplay'] = json.get('autoplay', False) elif key == 'filter': - filterkey = json[key].keys()[0] + filterkey = [k for k in json[key].keys()][0] ret.filter = json[key][filterkey] ret.filterkey = filterkey elif key == 'description':