Fix Wstream

This commit is contained in:
Alhaziel01
2020-03-08 13:48:27 +01:00
parent c584e16256
commit 2b2691d1c7

View File

@@ -58,7 +58,8 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
video_urls = []
global data, real_url
sitekey = scrapertools.find_multiple_matches(data, """data-sitekey=['"] *([^"']+)""")[-1]
sitekey = scrapertools.find_multiple_matches(data, """data-sitekey=['"] *([^"']+)""")
if sitekey: sitekey = sitekey[-1]
captcha = platformtools.show_recaptcha(sitekey, page_url) if sitekey else ''
possibleParam = scrapertools.find_multiple_matches(data,r"""<input.*?(?:name=["']([^'"]+).*?value=["']([^'"]*)['"]>|>)""")