Migliorato support.match e sostituito ove usato

- Fix Animeforce
 - Fix AnimeSubITA
This commit is contained in:
Alhaziel
2020-01-15 18:44:03 +01:00
parent 89cbb8ae12
commit fce3bf2590
21 changed files with 271 additions and 165 deletions
+3 -3
View File
@@ -74,7 +74,7 @@ def peliculas(item):
@support.scrape
def episodios(item):
data = support.match(item, headers=headers)[1]
data = support.match(item, headers=headers).data
if not any(x in data for x in ['Lista Episodi', 'Movie Parte']):
support.log('NOT IN DATA')
patron = r'(?:iframe src|str)="(?P<url>[^"]+)"'
@@ -107,7 +107,7 @@ def episodios(item):
return locals()
def check(item):
data = support.match(item, headers=headers)[1]
data = support.match(item, headers=headers).data
if 'Lista Episodi' not in data:
item.data = data
return findvideos(item)
@@ -120,7 +120,7 @@ def findvideos(item):
if item.data:
data = item.data
else:
matches = support.match(item, '(?:str="([^"]+)"|iframe src="([^"]+)")')[0]
matches = support.match(item, patron=r'(?:str="([^"]+)"|iframe src="([^"]+)")').matches
data = ''
if matches:
for match in matches: