[baidu] you got this

This commit is contained in:
Mort Yao 2018-08-15 21:42:40 +02:00
parent 28e1f6cc15
commit 82db2fe8f0
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -130,7 +130,7 @@ def baidu_download(url, output_dir='.', stream_type=None, merge=True, info_only=
title = r1(r'title:"([^"]+)"', 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'
size = url_size(vhsrc[0])
print_info(site_info, title, ext, size)