[kaltura] Assume ttml to be default subtitles' extension
authorSergey M․ <dstftw@gmail.com>
Sun, 21 Aug 2016 01:27:53 +0000 (08:27 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 21 Aug 2016 01:28:36 +0000 (08:28 +0700)
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 {