mirror of
https://github.com/soimort/you-get.git
synced 2025-02-10 12:12:26 +03:00
[baidu] as you can see
This commit is contained in:
parent
47b2164b2e
commit
932fc7a7b5
@ -129,7 +129,8 @@ def baidu_download(url, output_dir='.', stream_type=None, merge=True, info_only=
|
|||||||
html = get_html(url)
|
html = get_html(url)
|
||||||
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="([^"]+\.mp4)"', html) or \
|
||||||
|
re.findall(r'vhsrc="([^"]+)"', html)
|
||||||
if len(vhsrc) > 0:
|
if len(vhsrc) > 0:
|
||||||
ext = 'mp4'
|
ext = 'mp4'
|
||||||
size = url_size(vhsrc[0])
|
size = url_size(vhsrc[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user