mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[ixigua] Fix error of matching title
This commit is contained in:
parent
42924dcad5
commit
f58a1c08bf
@ -82,7 +82,7 @@ def ixigua_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
||||
# example url: https://www.ixigua.com/i6631065141750268420/#mid=63024814422
|
||||
html = get_html(url, faker=True)
|
||||
video_id = match1(html, r"\"vid\":\"([^\"]+)")
|
||||
title = match1(html, r"\"player__videoTitle\"><h1>(.*)<\/h1><\/div>")
|
||||
title = match1(html, r"\"player__videoTitle\">.*?<h1.*?>(.*)<\/h1><\/div>")
|
||||
if not video_id:
|
||||
log.e("video_id not found, url:{}".format(url))
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user