make bvid extraction fatal

This commit is contained in:
grqx_termux 2024-11-29 00:45:25 +13:00
parent 1248528409
commit 1446558e02

View File

@ -653,7 +653,7 @@ class BiliBiliIE(BilibiliBaseIE):
raise ExtractorError(
'This video may be deleted or geo-restricted. '
'You might want to try a VPN or a proxy server (with --proxy)', expected=True)
play_info = self._download_playinfo(traverse_obj(initial_state, ('videoData', 'bvid'), default=video_id),
play_info = self._download_playinfo(initial_state['videoData']['bvid'],
initial_state['cid'], headers=headers)
else:
play_info = traverse_obj(play_info_obj, ('data', {dict}))