Merge branch 'develop' of https://github.com/xiaohutushen30/you-get into xiaohutushen30-develop

This commit is contained in:
Mort Yao 2019-08-02 13:06:51 +02:00
commit 864757f5bb
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -81,8 +81,8 @@ def get_video_url_from_video_id(video_id):
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"videoId\s*:\s*'([^']+)'")
title = match1(html, r"title: '(\S+)',")
video_id = match1(html, r"\"vid\":\"([^\"]+)")
title = match1(html, r"\"title\":\"(\S+?)\",")
if not video_id:
log.e("video_id not found, url:{}".format(url))
return