mirror of
https://github.com/soimort/you-get.git
synced 2025-02-02 16:24:00 +03:00
QQ: fix #167
This commit is contained in:
parent
575600d728
commit
ac131d78b5
@ -29,6 +29,10 @@ def qq_download(url, output_dir = '.', merge = True, info_only = False):
|
||||
aid = r1(r'(.*)\.html', r_url)
|
||||
url = "%s/%s.html" % (aid, vid)
|
||||
|
||||
if re.match(r'http://static.video.qq.com/.*vid=', url):
|
||||
vid = r1(r'http://static.video.qq.com/.*vid=(\w+)', url)
|
||||
url = "http://v.qq.com/page/%s.html" % vid
|
||||
|
||||
html = get_html(url)
|
||||
|
||||
title = r1(r'title:"([^"]+)"', html)
|
||||
|
Loading…
Reference in New Issue
Block a user