From e2f195ebd336ba93f4fbb15cf476242dab7af2aa Mon Sep 17 00:00:00 2001 From: marco <10120390+mac12m99@users.noreply.github.com> Date: Sat, 5 Nov 2022 14:22:00 +0100 Subject: [PATCH] =?UTF-8?q?animeuniverse=20=C3=A8=20ora=20AnimeHDitalia,?= =?UTF-8?q?=20nascosti=20gli=20episodi=20non=20ancora=20caricati?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- channels.json | 4 ++-- channels/animeuniverse.json | 2 +- channels/animeuniverse.py | 3 ++- tests/test_generic.py | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/channels.json b/channels.json index 8ee7e495..a57b7120 100644 --- a/channels.json +++ b/channels.json @@ -5,7 +5,7 @@ "animeforce": "https://www.animeforce.it", "animesaturn": "https://www.animesaturn.in", "animeunity": "https://www.animeunity.tv", - "animeuniverse": "https://www.animeuniverse.it", + "animeuniverse": "https://www.animehditalia.it", "animeworld": "https://www.animeworld.tv", "aniplay": "https://aniplay.it", "casacinema": "https://casacinema.lol", @@ -14,7 +14,7 @@ "cinetecadibologna": "http://cinestore.cinetecadibologna.it", "discoveryplus": "https://www.discoveryplus.com", "dreamsub": "https://www.animeworld.tv", - "eurostreaming": "https://eurostreaming.quest", + "eurostreaming": "https://eurostreaming.boats", "eurostreaming_actor": "https://eurostreaming.actor", "filmstreaming": "https://filmstreaming.media", "guardaseriecam": "https://guardaserie.cam", diff --git a/channels/animeuniverse.json b/channels/animeuniverse.json index 0fa509cc..fc61fb9c 100644 --- a/channels/animeuniverse.json +++ b/channels/animeuniverse.json @@ -1,6 +1,6 @@ { "id": "animeuniverse", - "name": "AnimeUniverse", + "name": "AnimeHDitalia", "active": true, "language": ["ita", "sub-ita"], "thumbnail": "animeuniverse.png", diff --git a/channels/animeuniverse.py b/channels/animeuniverse.py index da4248e1..004f2468 100644 --- a/channels/animeuniverse.py +++ b/channels/animeuniverse.py @@ -10,7 +10,7 @@ headers = {} perpage_list = ['20','30','40','50','60','70','80','90','100'] perpage = perpage_list[support.config.get_setting('perpage' , 'animeuniverse')] -epPatron = r'\s*(?P[^<]+)[^>]+>[^>]+>\s*<a href="(?P<url>[^"]+)"' +epPatron = r'<td>\s*(?P<title>[^<]+)[^>]+>[^>]+>\s*<a href="(?P<url>[^"]+)"[^>]+>\s*<img [^>]+Streaming' @support.menu @@ -103,6 +103,7 @@ def episodios(item): anime = True pagination = int(perpage) patron = epPatron + # debug = True return locals() diff --git a/tests/test_generic.py b/tests/test_generic.py index 9ff50d3f..7817de7d 100644 --- a/tests/test_generic.py +++ b/tests/test_generic.py @@ -378,10 +378,10 @@ class GenericServerTest(unittest.TestCase): self.assertTrue(page.success, self.name + ' scraper returned an invalid link') self.assertLess(page.code, 400, self.name + ' scraper returned a ' + str(page.code) + ' link') - contentType = page.headers['Content-Type'] + contentType = page.headers['Content-Type'].lower() self.assert_(contentType.startswith( 'video') or 'mpegurl' in contentType or 'octet-stream' in contentType or 'dash+xml' in contentType, - self.name + ' scraper did not return valid url for link ' + page_url + '<br>Direct url: ' + directUrl + '<br>Content-Type: ' + contentType) + self.name + ' scraper did not return valid url for link ' + page_url + '<br>Direct url: ' + directUrl + '<br>Content-Type: ' + page.headers['Content-Type']) print('test passed')