- Aggiornato Anavids

- Fix m3u8 non supportati da inputstream
This commit is contained in:
Alhaziel01
2021-10-21 19:26:55 +02:00
parent 3f55c94662
commit 40d8501afc
6 changed files with 20 additions and 10 deletions
+4 -1
View File
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from core import httptools, support
from core import scrapertools
from lib import jsunpack
from platformcode import config, logger
@@ -17,5 +17,8 @@ def test_video_exists(page_url):
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
global data
packed = support.match(data, patron=r'(eval\(function\(p.*?)</').match
if packed:
data = jsunpack.unpack(packed).replace("\\", "")
video_urls = support.get_jwplayer_mediaurl(data, 'AvaVids')
return video_urls