Fix wrong video title for ixigua

This commit is contained in:
axzxc1236 2019-08-18 08:45:24 +08:00
parent 154b22930b
commit 65293201f3

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"\"title\":\"(\S+?)\",")
title = match1(html, r"\"player__videoTitle\"><h1>(.*)<\/h1><\/div>")
if not video_id:
log.e("video_id not found, url:{}".format(url))
return