Fix dropload, filmpertutti (sezione aggiornamenti), disattivato filmstreaming (da errore anche da browser)

This commit is contained in:
marco
2022-12-03 14:58:49 +01:00
parent e9be40c944
commit 473d8f8758
5 changed files with 10 additions and 9 deletions

View File

@@ -31,9 +31,9 @@ def peliculas(item):
patronNext = r'class="next".*?"(.+?)"'
else:
patron = r'<div class="post-thumb">.*?<img src="(?P<thumb>[^"]+)".*?><a href="(?P<url>[^"]+)"[^>]+>(?P<title>.+?)[\<]?[/(](?P<year>.*?)[\)|a]'
patron = r'<div class="post-thumb">.*?<img src="(?P<thumb>[^"]+)".*?><a href="(?P<url>[^"]+)"[^>]+>(?P<title>.+?)[\<]'
patronNext = r'next.*?href="(.*?)"'
# debug = True
return locals()

View File

@@ -45,7 +45,7 @@ def peliculas(item):
patronNext = r'<a href="([^"]+)[^>]+>Pagina'
else:
patronBlock = r'<ul class="posts">(?P<block>.*)<div class="clear[^"]*">'
patron = r'<li>\s?<a href="(?P<url>[^"]+)" data-thumbnail="(?P<thumb>[^"]+)">.*?<div class="title[^"]*">(?P<title>.+?)(?:\s\[(?P<quality>HD)\])?<\/div>\s*<div class="episode[^"]*"[^>]+>(?P<episode>[^<(]+)(?:\((?P<lang>[a-zA-Z\-]+)\))?'
patron = r'<li>\s?<a href="(?P<url>[^"]+)" data-thumbnail="(?P<thumb>[^"]+)">.*?<div class="title[^"]*">(?P<title>[^<]+?)(?:\s\[(?P<quality>HD)\])?(?:\s\((?P<year>[0-9]{4})\))?<\/div>.*?<div class="episode[^"]*"[^>]+>(?P<episode>[^<(]+)(?:\((?P<lang>[a-zA-Z\-]+)\))?'
if item.args == 'search':
action = 'check'

View File

@@ -2,7 +2,7 @@
"id": "filmstreaming",
"name": "Film Streaming",
"language": ["ita"],
"active": true,
"active": false,
"thumbnail": "filmstreaming.png",
"banner": "filmstreaming.png",
"categories": ["movie"],

View File

@@ -121,7 +121,7 @@ class UnshortenIt(object):
logger.info(uri)
if originalUri == uri and logger.testMode:
if originalUri == uri and logger.testMode and code != 404:
raise Exception('Not un-shortened link: ' + uri)
return uri, code
@@ -507,6 +507,8 @@ class UnshortenIt(object):
html = r.data
uri = re.findall(r'<iframe\s+src="([^"]+)', html)[0]
if not uri and 'Questo video è in conversione' in html:
return uri, 404
return uri, r.code

View File

@@ -22,11 +22,10 @@ def test_video_exists(page_url):
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
logger.debug(" url=" + page_url)
video_urls = []
global data
vres = scrapertools.find_multiple_matches(data, 'nowrap[^>]+>([^,]+)')
if not vres: vres = scrapertools.find_multiple_matches(data, '<td>(\d+x\d+)')
# vres = scrapertools.find_multiple_matches(data, 'nowrap[^>]+>([^,]+)')
# if not vres: vres = scrapertools.find_multiple_matches(data, '<td>(\d+x\d+)')
data_pack = scrapertools.find_single_match(data, "</div>\n\s*<script[^>]+>(eval.function.p,a,c,k,e,.*?)\s*</script>")
if data_pack != "":
@@ -36,4 +35,4 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
_headers = urllib.urlencode(httptools.default_headers)
video_urls = support.get_jwplayer_mediaurl(data, 'dropload')
return sorted(video_urls, key=lambda x: int(x[0].split('x')[0])) if vres else video_urls
return video_urls