mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-08 09:53:43 +00:00
revert changes to _download_playinfo
This commit is contained in:
parent
1442658d9a
commit
9944c0c7aa
@ -168,11 +168,10 @@ class BilibiliBaseIE(InfoExtractor):
|
||||
params = {'bvid': bvid, 'cid': cid, 'fnval': 4048}
|
||||
if qn:
|
||||
params['qn'] = qn
|
||||
play_info = self._download_json(
|
||||
return self._download_json(
|
||||
'https://api.bilibili.com/x/player/wbi/playurl', bvid,
|
||||
query=self._sign_wbi(params, bvid), headers=headers,
|
||||
note=f'Downloading video formats for cid {cid} {qn or ""}')
|
||||
return play_info['data']
|
||||
note=f'Downloading video formats for cid {cid} {qn or ""}')['data']
|
||||
|
||||
def json2srt(self, json_data):
|
||||
srt_data = ''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user