mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-05-04 06:26:13 +00:00
use bvid
This commit is contained in:
parent
e92dcf0077
commit
1248528409
@ -653,7 +653,8 @@ class BiliBiliIE(BilibiliBaseIE):
|
|||||||
raise ExtractorError(
|
raise ExtractorError(
|
||||||
'This video may be deleted or geo-restricted. '
|
'This video may be deleted or geo-restricted. '
|
||||||
'You might want to try a VPN or a proxy server (with --proxy)', expected=True)
|
'You might want to try a VPN or a proxy server (with --proxy)', expected=True)
|
||||||
play_info = self._download_playinfo(video_id, initial_state['cid'], headers=headers)
|
play_info = self._download_playinfo(traverse_obj(initial_state, ('videoData', 'bvid'), default=video_id),
|
||||||
|
initial_state['cid'], headers=headers)
|
||||||
else:
|
else:
|
||||||
play_info = traverse_obj(play_info_obj, ('data', {dict}))
|
play_info = traverse_obj(play_info_obj, ('data', {dict}))
|
||||||
if not play_info:
|
if not play_info:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user