Fix Animesaturn

This commit is contained in:
Alhaziel
2019-10-28 19:24:52 +01:00
parent acb4243a3a
commit df49e689a8
+2 -1
View File
@@ -64,6 +64,7 @@ def menu(item):
@support.scrape @support.scrape
def peliculas(item): def peliculas(item):
anime = True anime = True
# debug = True
if item.args == 'updated': if item.args == 'updated':
post = "page=" + str(item.page if item.page else 1) if item.page > 1 else None post = "page=" + str(item.page if item.page else 1) if item.page > 1 else None
page, data = support.match(item, r'data-page="(\d+)" title="Next">', post=post, headers=headers) page, data = support.match(item, r'data-page="(\d+)" title="Next">', post=post, headers=headers)
@@ -77,7 +78,7 @@ def peliculas(item):
else: else:
pagination = '' pagination = ''
if item.args == 'incorso': patron = r'"slider_title" href="(?P<url>[^"]+)"><img src="(?P<thumb>[^"]+)"[^>]+>(?P<title>[^\(<]+)(?:\((?P<year>\d+)\))?</a>' if item.args == 'incorso': patron = r'"slider_title" href="(?P<url>[^"]+)"><img src="(?P<thumb>[^"]+)"[^>]+>(?P<title>[^\(<]+)(?:\((?P<year>\d+)\))?</a>'
else: patron = r'href="(?P<url>[^"]+)"[^>]+>[^>]+>(?P<title>[^<|(]+)(?:(?P<lang>\(([^\)]+)\)))?<|\)' else: patron = r'href="(?P<url>[^"]+)"[^>]+>[^>]+>(?P<title>.+?)(?:\((?P<lang>ITA)\))?(?:(?P<year>\((\d+)\)))?</span>'
action = 'check' action = 'check'
return locals() return locals()