修复搜狐号的视频不能下载的问题

This commit is contained in:
laiqing 2020-01-08 14:05:57 +08:00
parent 179bbeaa5e
commit b96acaa526

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)
vid = r1(r'\Wvid\s*[\:=]\s*[\'"]?(\d+)[\'"]?', html) or r1(r'bid:\'(\d+)\',', html)
assert vid
if extractor_proxy: