mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-04 23:35:04 +00:00
[vrv] extract captions(closes #19238)
This commit is contained in:
parent
a277dd33eb
commit
5831742840
1 changed files with 9 additions and 8 deletions
|
@ -198,7 +198,8 @@ def _real_extract(self, url):
|
|||
self._sort_formats(formats)
|
||||
|
||||
subtitles = {}
|
||||
for subtitle in streams_json.get('subtitles', {}).values():
|
||||
for k in ('captions', 'subtitles'):
|
||||
for subtitle in streams_json.get(k, {}).values():
|
||||
subtitle_url = subtitle.get('url')
|
||||
if not subtitle_url:
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue