fix issue #2 that can't download some videos from v.qq.com

This commit is contained in:
Ming Dai 2012-12-25 20:41:50 +08:00
parent ee3d248afb
commit 0dcc813917

View File

@ -17,7 +17,7 @@ def qq_download(url, output_dir = '.', merge = True, info_only = False):
if re.match(r'http://v.qq.com/([^\?]+)\?vid', url): if re.match(r'http://v.qq.com/([^\?]+)\?vid', url):
aid = r1(r'(.*)\.html', url) aid = r1(r'(.*)\.html', url)
vid = r1(r'http://v.qq.com/[^\?]+\?vid=(\w+)', url) vid = r1(r'http://v.qq.com/[^\?]+\?vid=(\w+)', url)
url = aid + "/" + vid + ".html" url = aid + ".html?vid=" + vid
html = get_html(url) html = get_html(url)