]> git.bitcoin.ninja Git - youtube-dl/blobdiff - youtube_dl/extractor/kaltura.py
[kaltura] Assume ttml to be default subtitles' extension
[youtube-dl] / youtube_dl / extractor / kaltura.py
index a8ce6dda2f55da27a80f9de7e6b0b7fc6cb8afc0..15f2fe24f178d0137da108eed96b7e6e23867df4 100644 (file)
@@ -266,7 +266,7 @@ class KalturaIE(InfoExtractor):
                     continue
                 subtitles.setdefault(caption.get('languageCode') or caption.get('language'), []).append({
                     'url': '%s/api_v3/service/caption_captionasset/action/serve/captionAssetId/%s' % (self._SERVICE_URL, caption['id']),
-                    'ext': caption.get('fileExt'),
+                    'ext': caption.get('fileExt', 'ttml'),
                 })
 
         return {