From 778e79b391630f6299358538172d04def9d9b72e Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Sun, 19 Jan 2020 11:38:02 +0100 Subject: [PATCH] Fix Animepertutti --- channels/animeleggendari.py | 8 ++++---- servers/mixdrop.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/channels/animeleggendari.py b/channels/animeleggendari.py index 3e814de3..a26e8314 100644 --- a/channels/animeleggendari.py +++ b/channels/animeleggendari.py @@ -74,10 +74,10 @@ def peliculas(item): @support.scrape def episodios(item): - data = support.match(item, headers=headers).data - if not any(x in data for x in ['Lista Episodi', 'Movie Parte']): + data = support.match(item, headers=headers, patronBlock=r'entry-content clearfix">(.*?)class="mh-widget mh-posts-2 widget_text').block + if not 'pagination clearfix' in data: support.log('NOT IN DATA') - patron = r'(?:iframe src|str)="(?P[^"]+)"' + patron = r'[^"]+)"' title = item.title def fullItemlistHook(itemlist): url = '' @@ -120,7 +120,7 @@ def findvideos(item): if item.data: data = item.data else: - matches = support.match(item, patron=r'(?:str="([^"]+)"|iframe src="([^"]+)")').matches + matches = support.match(item, patron=r'[^"]+)"').matches data = '' if matches: for match in matches: diff --git a/servers/mixdrop.json b/servers/mixdrop.json index 6d39077a..6977131e 100644 --- a/servers/mixdrop.json +++ b/servers/mixdrop.json @@ -4,7 +4,7 @@ "ignore_urls": [], "patterns": [ { - "pattern": "mixdrop.co/(?:f|e)/([a-z0-9]+)", + "pattern": "mixdrop.[^/]+/(?:f|e)/([a-z0-9]+)", "url": "https://mixdrop.co/e/\\1" } ]