Update qq.py

处理类似这样的微信公众号文章视频地址:https://v.qq.com/iframe/preview.html?width=500&height=375&auto=0&vid=c0343icyvk6
This commit is contained in:
Jian Dai 2019-10-10 10:11:05 +08:00 committed by GitHub
parent a38355711d
commit 27e10d56e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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