mirror of
https://github.com/soimort/you-get.git
synced 2025-02-09 03:37:52 +03:00
Title Extract Failure
This commit is contained in:
parent
018cfde604
commit
4134751c66
@ -106,7 +106,7 @@ def ixigua_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
|||||||
html = get_content(url, headers=headers)
|
html = get_content(url, headers=headers)
|
||||||
|
|
||||||
video_id = match1(html, r"\"vid\":\"([^\"]+)")
|
video_id = match1(html, r"\"vid\":\"([^\"]+)")
|
||||||
title = match1(html, r"\"player__videoTitle\">.*?<h1.*?>(.*)<\/h1><\/div>")
|
title = match1(html, r"\"player__titleLine\">.*?<h1.*?>(.*)<\/h1><\/div>")
|
||||||
if not video_id:
|
if not video_id:
|
||||||
log.e("video_id not found, url:{}".format(url))
|
log.e("video_id not found, url:{}".format(url))
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user