This commit is contained in:
N/Ame 2024-11-29 00:38:49 +13:00 committed by GitHub
parent e92dcf0077
commit 1248528409
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -653,7 +653,8 @@ 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(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:
play_info = traverse_obj(play_info_obj, ('data', {dict}))
if not play_info: