From bfc5657d4520e63f08d9422f8c2f32fa229d27ac Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Mon, 18 Oct 2021 19:20:08 +0200 Subject: [PATCH] Fix maxstream --- servers/maxstream.py | 61 ++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/servers/maxstream.py b/servers/maxstream.py index c7896321..13d7fea5 100644 --- a/servers/maxstream.py +++ b/servers/maxstream.py @@ -30,10 +30,6 @@ def get_video_url(page_url, premium=False, user="", password="", video_password= video_urls = [] global data - # support.dbg() - cast_url = support.match('http://maxstream.video/?op=page&tmpl=../../download1', patron='') - lastIndexEnd = data.rfind('') + # support.dbg() + possible_cast_url = support.match('http://maxstream.video/?op=page&tmpl=../../download1', patron='')):lastIndexEnd ] + lastIndexStart = data.rfind('') - match = scrapertools.find_single_match(script, r'(\[[^\]]+\])[^\{]*\{[^\(]+\(parseInt\(value\)\s?-\s?([0-9]+)') - if match: - char_codes = ast.literal_eval(match[0]) - hidden_js = "".join([chr(c - int(match[1])) for c in char_codes]) + script = data[ (lastIndexStart + len('