From 84b5d7713989c805374d170b8cb6e02d8bf0a91d Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Mon, 7 Feb 2022 18:00:17 +0100 Subject: [PATCH] StreamingCommunity Fix copertine mancanti --- channels/streamingcommunity.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/channels/streamingcommunity.py b/channels/streamingcommunity.py index 8d9b23aa..384bbbe1 100644 --- a/channels/streamingcommunity.py +++ b/channels/streamingcommunity.py @@ -113,9 +113,8 @@ def newest(category): def peliculas(item): - # getHeaders() logger.debug() - + if item.mainThumb: item.thumbnail = item.mainThumb global host itemlist = [] items = [] @@ -159,6 +158,7 @@ def peliculas(item): itemlist.sort(key=lambda item: item.n) if not item.newest: + item.mainThumb = item.thumbnail if recordlist: itemlist.append(item.clone(title=support.typo(support.config.get_localized_string(30992), 'color kod bold'), thumbnail=support.thumb(), page=page, records=recordlist)) elif len(itemlist) >= 20: @@ -170,6 +170,7 @@ def peliculas(item): def makeItem(n, it, item): info = session.post(host + '/api/titles/preview/{}'.format(it['id']), headers=headers).json() + logger.debug(jsontools.dump(it)) title = info['name'] lang = 'Sub-ITA' if 'sub-ita' in title.lower() else 'ITA' title = support.cleantitle(re.sub('\[|\]|[Ss][Uu][Bb]-[Ii][Tt][Aa]', '', title)) @@ -203,7 +204,7 @@ def episodios(item): js = json.loads(support.match(item.url, patron=r'seasons="([^"]+)').match.replace('"','"')) for episodes in js: - logger.debug(jsontools.dump(js)) + # logger.debug(jsontools.dump(js)) for it in episodes['episodes']: itemlist.append(