mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 11:24:02 +03:00
[baidu] you got this
This commit is contained in:
parent
28e1f6cc15
commit
82db2fe8f0
@ -130,7 +130,7 @@ def baidu_download(url, output_dir='.', stream_type=None, merge=True, info_only=
|
|||||||
title = r1(r'title:"([^"]+)"', html)
|
title = r1(r'title:"([^"]+)"', html)
|
||||||
|
|
||||||
vhsrc = re.findall(r'"BDE_Image"[^>]+src="([^"]+)"', html) or re.findall(r'vhsrc="([^"]+)"', html)
|
vhsrc = re.findall(r'"BDE_Image"[^>]+src="([^"]+)"', html) or re.findall(r'vhsrc="([^"]+)"', html)
|
||||||
if vhsrc is not None:
|
if len(vhsrc) > 0:
|
||||||
ext = 'mp4'
|
ext = 'mp4'
|
||||||
size = url_size(vhsrc[0])
|
size = url_size(vhsrc[0])
|
||||||
print_info(site_info, title, ext, size)
|
print_info(site_info, title, ext, size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user