From 491fcd6af234c9419d6ec91c72347ba3bb2cf8fe Mon Sep 17 00:00:00 2001 From: marco <10120390+mac12m99@users.noreply.github.com> Date: Sat, 21 Jan 2023 14:03:41 +0100 Subject: [PATCH] Fix cinemalibero e SC --- channels.json | 2 +- channels/cinemalibero.py | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/channels.json b/channels.json index 7068b99f..8552e79b 100644 --- a/channels.json +++ b/channels.json @@ -28,7 +28,7 @@ "plutotv": "https://pluto.tv", "raiplay": "https://www.raiplay.it", "serietvu": "https://www.serietvu.live", - "streamingcommunity": "https://streamingcommunity.actor", + "streamingcommunity": "https://streamingcommunity.online", "streamingita": "https://www.streamingita.best", "streamtime": "https://t.me/s/StreamTime", "tantifilm": "https://www.tantifilm.recipes", diff --git a/channels/cinemalibero.py b/channels/cinemalibero.py index c7b0f3fc..35201d96 100644 --- a/channels/cinemalibero.py +++ b/channels/cinemalibero.py @@ -155,11 +155,13 @@ def episodios(item): for s in servers: executor.submit(get_ep, s) # logger.debug(it.contentLanguage) - ret.extend([it.clone(title=typo(ep, 'bold')+typo(it.contentLanguage, '_ [] color kod bold'), servers=[srv.tourl() for srv in episodes[ep]]) for ep in episodes]) if item.args != 'anime': - for n, r in enumerate(ret): - r.contentSeason = int(episodes[n].split('x')[0]) - r.contentEpisodeNumber = int(episodes[n].split('x')[1]) + for ep in episodes: + ret.append(it.clone(title=typo(ep, 'bold') + typo(it.contentLanguage, '_ [] color kod bold'), + servers=[srv.tourl() for srv in episodes[ep]], contentSeason=int(ep.split('x')[0]), contentEpisodeNumber=int(ep.split('x')[1]))) + else: + ret.extend([it.clone(title=typo(ep, 'bold') + typo(it.contentLanguage, '_ [] color kod bold'), + servers=[srv.tourl() for srv in episodes[ep]]) for ep in episodes]) elif ep: ret.append(it) return sorted(ret, key=lambda i: i.title)