Fix altadefinizione, film in videoteca

This commit is contained in:
marco
2023-10-24 19:45:38 +02:00
parent 6e146f7a75
commit 606bfe4618

View File

@@ -74,7 +74,7 @@ def peliculas(item):
# if item.args == 'search':
# patron = r'<item>\s*<title>(?P<title>[^\[\(\<]+)(?:\[(?P<quality>[^\]]+)\])?\s*(?:\((?P<lang>[a-zA-z-]+)\))?\s*(?:\((?P<year>\d+)\))?\s*[^>]+>\s*<link>(?P<url>[^<]+)'
patronNext = r'href="([^"]+)[^>]+>Successivo'
debug = True
# debug = True
return locals()
@@ -101,6 +101,10 @@ def check(item):
def findvideos(item):
logger.debug()
# support.dbg()
if not item.data:
item.data = httptools.downloadpage(item.url).data
data = item.data
if item.contentType == 'movie' and isinstance(item.data, str):
item.data = support.match(support.match(item.data, patron=r'iframe src="([^"]+)').match).data
return support.server(item, item.data)
data = support.match(support.match(item.data, patron=r'iframe src="([^"]+)').match).data
item.data = ''
return support.server(item, data)