mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 11:31:29 +01:00
pops param try_look
when logged in.
This commit is contained in:
parent
29a5968278
commit
b01183f904
|
@ -166,6 +166,8 @@ def _sign_wbi(self, params, video_id):
|
||||||
|
|
||||||
def _download_playinfo(self, bvid, cid, headers=None, **kwargs):
|
def _download_playinfo(self, bvid, cid, headers=None, **kwargs):
|
||||||
params = {'bvid': bvid, 'cid': cid, 'fnval': 4048, **kwargs}
|
params = {'bvid': bvid, 'cid': cid, 'fnval': 4048, **kwargs}
|
||||||
|
if self.is_logged_in:
|
||||||
|
params.pop('try_look', None)
|
||||||
return self._download_json(
|
return self._download_json(
|
||||||
'https://api.bilibili.com/x/player/wbi/playurl', bvid,
|
'https://api.bilibili.com/x/player/wbi/playurl', bvid,
|
||||||
query=self._sign_wbi(params, bvid), headers=headers,
|
query=self._sign_wbi(params, bvid), headers=headers,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user