From d8963766c25eaee44c554c100b5d9a81c0407b1f Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Sat, 16 Oct 2021 11:22:40 +0200 Subject: [PATCH] Fix titoli Streaming Community --- channels/streamingcommunity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channels/streamingcommunity.py b/channels/streamingcommunity.py index f91679d3..d6a4ea5a 100644 --- a/channels/streamingcommunity.py +++ b/channels/streamingcommunity.py @@ -149,6 +149,7 @@ def peliculas(item): def makeItem(n, it, item): info = session.post(host + '/api/titles/preview/{}'.format(it['id']), headers=headers).json() title, lang = support.match(info['name'], patron=r'([^\[|$]+)(?:\[([^\]]+)\])?').match + title = support.cleantitle(title) if not lang: lang = 'ITA' itm = item.clone(title=support.typo(title,'bold') + support.typo(lang,'_ [] color kod bold')) @@ -184,7 +185,7 @@ def episodios(item): for it in episodes['episodes']: itemlist.append( support.Item(channel=item.channel, - title=support.typo(str(episodes['number']) + 'x' + str(it['number']).zfill(2) + ' - ' + it['name'], 'bold'), + title=support.typo(str(episodes['number']) + 'x' + str(it['number']).zfill(2) + ' - ' + support.cleantitle(it['name']), 'bold'), episode = it['number'], season=episodes['number'], thumbnail=it['images'][0]['original_url'] if 'images' in it and 'original_url' in it['images'][0] else item.thumbnail,