mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Update yt_dlp/extractor/tvw.py
This commit is contained in:
parent
56b30a2b46
commit
e73e4ad048
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ def _real_extract(self, url):
|
|||
formats.extend(fmts)
|
||||
self._merge_subtitles(subs, target=subtitles)
|
||||
if caption_url := traverse_obj(video_data, ('captionPath', {url_or_none})):
|
||||
self._merge_subtitles({'en': [{'en': 'vtt', 'url': caption_url}]}, target=subtitles)
|
||||
subtitles.setdefault('en', []).append({'url': caption_url, 'ext': 'vtt'})
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
|
|
Loading…
Reference in a new issue