From 85ed91646db183f564d12a4b0cde0281c57d7b9e Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Tue, 24 Mar 2020 10:57:34 +0100 Subject: [PATCH] Fix Community --- specials/community.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/specials/community.py b/specials/community.py index b3935805..b9c40495 100644 --- a/specials/community.py +++ b/specials/community.py @@ -14,7 +14,8 @@ from specials import shortcuts CONTEXT = shortcuts.context() info_language = ["de", "en", "es", "fr", "it", "pt"] # from videolibrary.json -lang = info_language[config.get_setting("info_language", "videolibrary")] +try: lang = info_language[config.get_setting("info_language", "videolibrary")] +except: lang = 'it' defpage = ["", "20", "40", "60", "80", "100"] defp = defpage[config.get_setting('pagination','community')] @@ -558,7 +559,7 @@ def filter_thread(filter, key, item, description): id = results['id'] if id: thumbnail = 'http://image.tmdb.org/t/p/original' + results['profile_path'] if results['profile_path'] else item.thumbnail - json_file = httptools.downloadpage('http://api.themoviedb.org/3/person/'+ str(id) + '?api_key=' + tmdb_api + '&language=en', use_requests=True).data + json_file = httptools.downloadpage('http://api.themoviedb.org/3/person/'+ str(id) + '?api_key=' + tmdb_api + '&language=%s', lang, use_requests=True).data plot += jsontools.load(json_file)['biography'] if description: