filmpertutti: corretto scraper puntate (no 1x00)

tantilm: corretta aggiunta in videoteca dalla ricerca
This commit is contained in:
marco
2020-04-30 21:02:17 +02:00
parent 8dbd81bb4c
commit a1be422ad6
3 changed files with 7 additions and 3 deletions
+4 -1
View File
@@ -80,7 +80,10 @@ def episodios(item):
else:
data_check = item.data
patron_check = r'<iframe src="([^"]+)" scrolling="no" frameborder="0" width="626" height="550" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true">'
item.url = scrapertools.find_single_match(data_check, patron_check)
data = httptools.downloadpage(scrapertools.find_single_match(data_check, patron_check), headers=headers).data
data = data.replace("'", '"')
data = re.sub('\n|\t', ' ', data)
data = re.sub(r'>\s+<', '> <', data)
patronBlock = r'Stagioni<\/a>.*?<ul class="nav navbar-nav">(?P<block>.*?)<\/ul>'
patron = r'<a href="(?P<url>[^"]+)"\s*>\s*<i[^>]+><\/i>\s*(?P<episode>\d+)<\/a>'