[baidu] squanch this, mofo

This commit is contained in:
Mort Yao 2018-07-17 17:59:31 +02:00
parent 50216593e4
commit ddf67aadb5
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -129,7 +129,7 @@ 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="([^"]+)"', html) or re.findall(r'vhsrc="([^"]+)"', html)
if vhsrc is not None: if vhsrc is not None:
ext = 'mp4' ext = 'mp4'
size = url_size(vhsrc[0]) size = url_size(vhsrc[0])