mirror of
https://github.com/soimort/you-get.git
synced 2025-02-02 16:24:00 +03:00
QQ: fix #127
This commit is contained in:
parent
68c49b90e7
commit
40558cc9e9
@ -21,10 +21,13 @@ def qq_download(url, output_dir = '.', merge = True, info_only = False):
|
||||
|
||||
if re.match(r'http://y.qq.com/([^\?]+)\?vid', url):
|
||||
vid = r1(r'http://y.qq.com/[^\?]+\?vid=(\w+)', url)
|
||||
url_1 = "http://v.qq.com/page/%s.html" % vid
|
||||
url_2 = r1(r'url=([^"]*)', get_html(url_1))
|
||||
aid = r1(r'(.*)\.html', url_2)
|
||||
url = "%s/%s.html" % (aid, vid)
|
||||
|
||||
url = "http://v.qq.com/page/%s.html" % vid
|
||||
|
||||
r_url = r1(r'<meta http-equiv="refresh" content="0;url=([^"]*)', get_html(url))
|
||||
if r_url:
|
||||
aid = r1(r'(.*)\.html', r_url)
|
||||
url = "%s/%s.html" % (aid, vid)
|
||||
|
||||
html = get_html(url)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user