Fix streamtape, filmpertutti->aggiornamenti
This commit is contained in:
@@ -27,17 +27,15 @@ def test_video_exists(page_url):
|
||||
|
||||
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
||||
logger.debug("url=" + page_url)
|
||||
# from core .support import dbg;dbg()
|
||||
|
||||
video_urls = []
|
||||
possible_url = ''
|
||||
find_url = match(data, patron=r'''innerHTML = ["']([^"]+)["'](?:\s*\+\s*['"]([^"']+))?''').match
|
||||
for m in find_url:
|
||||
possible_url += m
|
||||
find_url = match(data, patron=r'''innerHTML = ["']([^"]+)["'](?:\s*\+\s*['"(]+([^"']+))?''').match
|
||||
possible_url = find_url[0]
|
||||
possible_url += find_url[1][2:]
|
||||
|
||||
if not possible_url:
|
||||
possible_url = match(data, patron=r"innerHTML\\'\]=\\'([^']+)").match
|
||||
url = "https:" + possible_url
|
||||
url = httptools.downloadpage(url, follow_redirects=False, only_headers=True).headers.get("location", "")
|
||||
video_urls.append(['MP4 [Streamtape]', url])
|
||||
return video_urls
|
||||
return video_urls
|
||||
|
||||
Reference in New Issue
Block a user