Fix AKStream

This commit is contained in:
Alhaziel
2019-11-30 17:57:18 +01:00
parent d73034b348
commit 479fab0812
2 changed files with 4 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
},
{
"pattern": "akvideo.stream/(?:embed-)?([a-zA-Z0-9]+)",
"url": "http://akvideo.stream/\\1"
"url": "http://akvideo.stream/video/\\1"
}
]
},

View File

@@ -24,13 +24,15 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
data = httptools.downloadpage(page_url).data.replace('https','http')
vres = scrapertools.find_multiple_matches(data, 'nowrap[^>]+>([^,]+)')
data_pack = scrapertools.find_single_match(data, "(eval.function.p,a,c,k,e,.*?)\s*</script>")
data_pack = scrapertools.find_single_match(data, "</div>\n\s*<script[^>]+>(eval.function.p,a,c,k,e,.*?)\s*</script>")
if data_pack != "":
from lib import jsunpack
data = jsunpack.unpack(data_pack)
# URL
# logger.info(data)
matches = scrapertools.find_multiple_matches(data, '(http.*?\.mp4)')
# logger.info(str(matches))
_headers = urllib.urlencode(httptools.default_headers)
i = 0