Skip to content

Commit

Permalink
[ixigua] Fix error of matching title
Browse files Browse the repository at this point in the history
  • Loading branch information
bittenApple committed Sep 17, 2019
1 parent 42924dc commit f58a1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/you_get/extractors/ixigua.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f58a1c0

Please sign in to comment.