mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
some url like this http://kuaibao.qq.com/s/SPO2016050503989500 got the title failed will raise exception
This commit is contained in:
parent
2768867965
commit
b9428bd9c7
@ -32,7 +32,8 @@ def qq_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
||||
elif 'kuaibao.qq.com' in url:
|
||||
content = get_html(url)
|
||||
vid = match1(content, r'vid\s*=\s*"\s*([^"]+)"')
|
||||
title = match1(content, r'title">([^"]+)</p>').strip()
|
||||
title = match1(content, r'title">([^"]+)</p>')
|
||||
title = title.strip() if title else vid
|
||||
elif 'iframe/player.html' in url:
|
||||
vid = match1(url, r'\bvid=(\w+)')
|
||||
# for embedded URLs; don't know what the title is
|
||||
|
Loading…
Reference in New Issue
Block a user