pan.baidu.com: fixed

This commit is contained in:
Mort Yao 2013-08-16 01:06:25 +08:00
parent 9df4d108af
commit b643a6c6a5

View File

@ -75,7 +75,7 @@ def baidu_download(url, output_dir = '.', stream_type = None, merge = True, info
if len(title.split('.')) > 1:
title = ".".join(title.split('.')[:-1])
real_url = r1(r'href="([^"]+)" id="downFileButtom"', html).replace('&', '&')
real_url = r1(r'\\"dlink\\":\\"([^"]*)\\"', html).replace('\\\\/', '/')
type, ext, size = url_info(real_url, faker = True)
print_info(site_info, title, ext, size)