mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
pan.baidu.com: fixed
This commit is contained in:
parent
9df4d108af
commit
b643a6c6a5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user