Fix maxstream

This commit is contained in:
mac12m99
2021-10-16 15:32:45 +02:00
parent d8963766c2
commit 9c83458d93
+4 -2
View File
@@ -4,6 +4,7 @@
# -------------------------------------------------------- # --------------------------------------------------------
from core import httptools, scrapertools, support from core import httptools, scrapertools, support
from lib import jsunpack
from platformcode import logger, config from platformcode import logger, config
import ast, sys import ast, sys
@@ -32,8 +33,9 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
video_urls = [] video_urls = []
# support.dbg() # support.dbg()
packed = support.match(data, patron=r"(eval\(function\(p,a,c,k,e,d\).*?)\s*</script").match
url = scrapertools.find_single_match(data, 'src:\s*"([^"]+)') unpack = jsunpack.unpack(packed)
url = scrapertools.find_single_match(unpack, 'src:\s*"([^"]+)')
if url: if url:
video_urls.append(['m3u8 [MaxStream]', url]) video_urls.append(['m3u8 [MaxStream]', url])
# url_video = '' # url_video = ''