Update ixigua.py

update regex
This commit is contained in:
Jiajie Han 2023-03-02 16:00:05 +08:00 committed by GitHub
parent 3bb85fa262
commit 9f28b9a6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ def ixigua_download(url, output_dir='.', merge=True, info_only=False, stream_id=
_cookies.append(c.strip().split(' ')[0]) _cookies.append(c.strip().split(' ')[0])
headers['cookie'] += ' '.join(_cookies) 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: if not match_txt:
log.e("Get video info from url failed, url: {}".format(url)) log.e("Get video info from url failed, url: {}".format(url))
return return