From 521f168ab96321ce2da2094397456771e58f0ba7 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Thu, 16 May 2024 19:26:44 +0200 Subject: [PATCH] Fix AnimeUnity e SCWS --- channels/animeunity.py | 7 ++-- servers/streamingcommunityws.py | 63 ++++++--------------------------- 2 files changed, 14 insertions(+), 56 deletions(-) diff --git a/channels/animeunity.py b/channels/animeunity.py index 679cd01a..cfcdf98e 100644 --- a/channels/animeunity.py +++ b/channels/animeunity.py @@ -200,10 +200,10 @@ def peliculas(item): def episodios(item): support.info() itemlist = [] - title = 'Parte ' if item.type.lower() == 'movie' else 'Episodio ' + title = 'Parte' if item.type.lower() == 'movie' else 'Episodio' for it in item.episodes: itemlist.append( - item.clone(title=support.typo(title + it['number'], 'bold'), + item.clone(title=support.typo('{}. {} {}'.format(it['number'], title, it['number']), 'bold'), episode = it['number'], fulltitle=item.title, show=item.title, @@ -213,7 +213,8 @@ def episodios(item): plot=item.plot, action='findvideos', contentType='episode', - scws_id=it.get('scws_id', '')) + url = '{}/{}'.format(item.url, it['id']) + ) # video_url=it.get('link', '')) ) diff --git a/servers/streamingcommunityws.py b/servers/streamingcommunityws.py index 26cf6435..fc1d5f81 100644 --- a/servers/streamingcommunityws.py +++ b/servers/streamingcommunityws.py @@ -17,15 +17,9 @@ vttsupport = False if int(xbmc.getInfoLabel('System.BuildVersion').split('.')[0] def test_video_exists(page_url): - global server_url global iframeParams - - server_url = support.scrapertools.decodeHtmlentities(support.match(page_url, patron='