mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
Update ixigua.py
update regex
This commit is contained in:
parent
3bb85fa262
commit
9f28b9a6c9
@ -33,7 +33,7 @@ def ixigua_download(url, output_dir='.', merge=True, info_only=False, stream_id=
|
||||
_cookies.append(c.strip().split(' ')[0])
|
||||
headers['cookie'] += ' '.join(_cookies)
|
||||
|
||||
match_txt = match1(html, r"<script id=\"SSR_HYDRATED_DATA\" nonce=\"argus-csp-token\">window._SSR_HYDRATED_DATA=(.*?)<\/script>")
|
||||
match_txt = match1(html, r"<script id=\"SSR_HYDRATED_DATA\" nonce=.*?>window._SSR_HYDRATED_DATA=(.*?)<\/script>")
|
||||
if not match_txt:
|
||||
log.e("Get video info from url failed, url: {}".format(url))
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user