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('