mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-05-05 15:05:58 +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}
|
params = {'bvid': bvid, 'cid': cid, 'fnval': 4048}
|
||||||
if qn:
|
if qn:
|
||||||
params['qn'] = qn
|
params['qn'] = qn
|
||||||
play_info = 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,
|
||||||
note=f'Downloading video formats for cid {cid} {qn or ""}')
|
note=f'Downloading video formats for cid {cid} {qn or ""}')['data']
|
||||||
return play_info['data']
|
|
||||||
|
|
||||||
def json2srt(self, json_data):
|
def json2srt(self, json_data):
|
||||||
srt_data = ''
|
srt_data = ''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user