From b01183f9041420ecc4202ff86d7832ee5c4f0a4e Mon Sep 17 00:00:00 2001 From: grqx_wsl <173253225+grqx@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:04:18 +1200 Subject: [PATCH] pops param `try_look` when logged in. --- yt_dlp/extractor/bilibili.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yt_dlp/extractor/bilibili.py b/yt_dlp/extractor/bilibili.py index b9b0487264..ec86c5964d 100644 --- a/yt_dlp/extractor/bilibili.py +++ b/yt_dlp/extractor/bilibili.py @@ -166,6 +166,8 @@ class BilibiliBaseIE(InfoExtractor): def _download_playinfo(self, bvid, cid, headers=None, **kwargs): params = {'bvid': bvid, 'cid': cid, 'fnval': 4048, **kwargs} + if self.is_logged_in: + params.pop('try_look', None) return self._download_json( 'https://api.bilibili.com/x/player/wbi/playurl', bvid, query=self._sign_wbi(params, bvid), headers=headers,