Title Extract Failure

This commit is contained in:
administrator 2020-04-10 14:18:04 +08:00
parent 018cfde604
commit 4134751c66

View File

@ -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