1
0
Fork 0
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:
sepro 2025-03-03 23:17:29 +01:00 committed by GitHub
parent 56b30a2b46
commit e73e4ad048
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,