mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
Update qq.py
处理类似这样的微信公众号文章视频地址:https://v.qq.com/iframe/preview.html?width=500&height=375&auto=0&vid=c0343icyvk6
This commit is contained in:
parent
a38355711d
commit
27e10d56e5
@ -128,7 +128,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_content(url)
|
content = get_content(url)
|
||||||
vids = matchall(content, [r'\?vid=(\w+)'])
|
vids = matchall(content, [r'[?;]vid=(\w+)'])
|
||||||
for vid in vids:
|
for vid in vids:
|
||||||
qq_download_by_vid(vid, vid, output_dir, merge, info_only)
|
qq_download_by_vid(vid, vid, output_dir, merge, info_only)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user