[sohu] fix bid

This commit is contained in:
Mort Yao 2020-01-08 17:36:16 +01:00
parent afc1b57818
commit 5943fb6ca3
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -26,7 +26,7 @@ def sohu_download(url, output_dir='.', merge=True, info_only=False, extractor_pr
vid = r1('id=(\d+)', url)
else:
html = get_html(url)
vid = r1(r'\Wvid\s*[\:=]\s*[\'"]?(\d+)[\'"]?', html) or r1(r'bid:\'(\d+)\',', html)
vid = r1(r'\Wvid\s*[\:=]\s*[\'"]?(\d+)[\'"]?', html) or r1(r'bid:\'(\d+)\',', html) or r1(r'bid=(\d+)', html)
assert vid
if extractor_proxy: