[wdr] Subtitles are TTML
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 9 Jun 2016 13:40:16 +0000 (21:40 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 9 Jun 2016 16:22:41 +0000 (00:22 +0800)
youtube_dl/extractor/wdr.py

index a9238cbeb03549325cb27dd9fdb319829c7bf59e..6b83a2a04264e14883c09e98ef59895a520e792b 100644 (file)
@@ -34,7 +34,8 @@ class WDRIE(InfoExtractor):
                 'description': 'md5:87be8ff14d8dfd7a7ee46f0299b52318',
                 'is_live': False,
                 '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 @@ class WDRIE(InfoExtractor):
         caption_url = metadata_media_resource.get('captionURL')
         if caption_url:
             subtitles['de'] = [{
-                'url': caption_url
+                'url': caption_url,
+                'ext': 'ttml',
             }]
 
         title = metadata_tracker_data.get('trackerClipTitle')