mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
Added subtitles support for NDR extractor
This commit is contained in:
parent
fe515e5c75
commit
e2d5f1cba6
@ -239,6 +239,8 @@ class NDREmbedBaseIE(InfoExtractor):
|
||||
'preference': quality_key(thumbnail.get('quality')),
|
||||
})
|
||||
|
||||
subs = {it['srclang']: [{'url': urljoin(url, it['src']), 'ext': 'ttml'}] for it in config.get('tracks', [])}
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
'title': title,
|
||||
@ -248,6 +250,7 @@ class NDREmbedBaseIE(InfoExtractor):
|
||||
'duration': duration,
|
||||
'thumbnails': thumbnails,
|
||||
'formats': formats,
|
||||
'subtitles': subs,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user