From fbb888a3d51d93d502f34dcfff362a4cf55e015a Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 18 Jul 2022 03:10:52 +0530 Subject: [PATCH] [extractor/BiliIntl] Fix subtitle extraction Closes #4359 Authored by: MinePlayersPE --- yt_dlp/extractor/bilibili.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/bilibili.py b/yt_dlp/extractor/bilibili.py index d695d9b499..4315315083 100644 --- a/yt_dlp/extractor/bilibili.py +++ b/yt_dlp/extractor/bilibili.py @@ -795,12 +795,14 @@ class BiliIntlBaseIE(InfoExtractor): def _get_subtitles(self, *, ep_id=None, aid=None): sub_json = self._call_api( - '/web/v2/subtitle', ep_id or aid, note='Downloading subtitles list', - errnote='Unable to download subtitles list', query=filter_dict({ + '/web/v2/subtitle', ep_id or aid, fatal=False, + note='Downloading subtitles list', errnote='Unable to download subtitles list', + query=filter_dict({ 'platform': 'web', + 's_locale': 'en_US', 'episode_id': ep_id, 'aid': aid, - })) + })) or {} subtitles = {} for sub in sub_json.get('subtitles') or []: sub_url = sub.get('url')