[ixigua] Fix error of matching title

This commit is contained in:
jiang.ma 2019-09-17 09:59:15 +08:00
parent 42924dcad5
commit f58a1c08bf

View File

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