Update yt_dlp/extractor/bilibili.py

This commit is contained in:
N/Ame 2024-12-02 10:41:26 +13:00 committed by GitHub
parent 63a3011150
commit 8bf65ed2d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -686,8 +686,7 @@ class BiliBiliIE(BilibiliBaseIE):
play_info = (
traverse_obj(
self._search_json(
r'window\.__playinfo__\s*=', webpage, 'play info', video_id, default=None),
self._search_json(r'window\.__playinfo__\s*=', webpage, 'play info', video_id, default=None),
('data', {dict}))
or self._download_playinfo(video_id, cid, headers=headers))