mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
Merge 08e2945565 into 36b29bb353
This commit is contained in:
commit
74567ed64c
1 changed files with 2 additions and 0 deletions
|
|
@ -681,6 +681,8 @@ class BiliBiliIE(BilibiliBaseIE):
|
||||||
new_url = traverse_obj(detail, ('data', 'View', 'redirect_url', {url_or_none}))
|
new_url = traverse_obj(detail, ('data', 'View', 'redirect_url', {url_or_none}))
|
||||||
if new_url and BiliBiliBangumiIE.suitable(new_url):
|
if new_url and BiliBiliBangumiIE.suitable(new_url):
|
||||||
return self.url_result(new_url, BiliBiliBangumiIE)
|
return self.url_result(new_url, BiliBiliBangumiIE)
|
||||||
|
if prefix == 'AV': # some old videos are missing init when using av urls (#14793)
|
||||||
|
return self.url_result(f'https://www.bilibili.com/video/{detail["data"]["View"]["bvid"]}', BiliBiliIE)
|
||||||
raise ExtractorError('Unable to extract initial state')
|
raise ExtractorError('Unable to extract initial state')
|
||||||
|
|
||||||
if traverse_obj(initial_state, ('error', 'trueCode')) == -403:
|
if traverse_obj(initial_state, ('error', 'trueCode')) == -403:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue