mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 17:02:30 +00:00
[wdr] Subtitles are TTML
This commit is contained in:
parent
b0aebe702c
commit
bc7e7adf51
@ -34,7 +34,8 @@ class WDRIE(InfoExtractor):
|
|||||||
'description': 'md5:87be8ff14d8dfd7a7ee46f0299b52318',
|
'description': 'md5:87be8ff14d8dfd7a7ee46f0299b52318',
|
||||||
'is_live': False,
|
'is_live': False,
|
||||||
'subtitles': {'de': [{
|
'subtitles': {'de': [{
|
||||||
'url': 'http://ondemand-ww.wdr.de/medp/fsk0/105/1058683/1058683_12220974.xml'
|
'url': 'http://ondemand-ww.wdr.de/medp/fsk0/105/1058683/1058683_12220974.xml',
|
||||||
|
'ext': 'ttml',
|
||||||
}]},
|
}]},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -190,7 +191,8 @@ def _real_extract(self, url):
|
|||||||
caption_url = metadata_media_resource.get('captionURL')
|
caption_url = metadata_media_resource.get('captionURL')
|
||||||
if caption_url:
|
if caption_url:
|
||||||
subtitles['de'] = [{
|
subtitles['de'] = [{
|
||||||
'url': caption_url
|
'url': caption_url,
|
||||||
|
'ext': 'ttml',
|
||||||
}]
|
}]
|
||||||
|
|
||||||
title = metadata_tracker_data.get('trackerClipTitle')
|
title = metadata_tracker_data.get('trackerClipTitle')
|
||||||
|
Loading…
Reference in New Issue
Block a user