mirror of
https://github.com/soimort/you-get.git
synced 2025-02-12 13:05:19 +03:00
修复了mp.weixin.qq.com中的vid匹配问题
This commit is contained in:
parent
2ae79f8f93
commit
fa5aa58701
@ -221,7 +221,7 @@ def qq_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
|||||||
|
|
||||||
if 'mp.weixin.qq.com/s?' in url:
|
if 'mp.weixin.qq.com/s?' in url:
|
||||||
content = get_html(url)
|
content = get_html(url)
|
||||||
vids = matchall(content, [r'\bvid=(\w+)'])
|
vids = matchall(content, [r'src=".+\bvid=(\w+).+"'])
|
||||||
for vid in vids:
|
for vid in vids:
|
||||||
site.download_by_vid(vid=vid, output_dir=output_dir, merge=merge, info_only=info_only, **kwargs)
|
site.download_by_vid(vid=vid, output_dir=output_dir, merge=merge, info_only=info_only, **kwargs)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user