mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[sohu] fix bid
This commit is contained in:
parent
afc1b57818
commit
5943fb6ca3
@ -26,7 +26,7 @@ def sohu_download(url, output_dir='.', merge=True, info_only=False, extractor_pr
|
|||||||
vid = r1('id=(\d+)', url)
|
vid = r1('id=(\d+)', url)
|
||||||
else:
|
else:
|
||||||
html = get_html(url)
|
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
|
assert vid
|
||||||
|
|
||||||
if extractor_proxy:
|
if extractor_proxy:
|
||||||
|
Loading…
Reference in New Issue
Block a user