diff --git a/servers/wstream.py b/servers/wstream.py index 05256db9..fe323d92 100644 --- a/servers/wstream.py +++ b/servers/wstream.py @@ -58,11 +58,10 @@ def get_video_url(page_url, premium=False, user="", password="", video_password= video_urls = [] global data, real_url - sitekey = scrapertools.find_single_match(data, """data-sitekey=['"] *([^"']+)""") + sitekey = scrapertools.find_multiple_matches(data, """data-sitekey=['"] *([^"']+)""")[-1] captcha = platformtools.show_recaptcha(sitekey, page_url) if sitekey else '' - possibleParam = scrapertools.find_multiple_matches(data, - r"""|>)""") + possibleParam = scrapertools.find_multiple_matches(data,r"""|>)""") if possibleParam: post = {param[0]: param[1] for param in possibleParam if param[0]} if captcha: post['g-recaptcha-response'] = captcha