aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/kaltura.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-01-28 18:27:42 +0700
committerSergey M․ <dstftw@gmail.com>2017-01-28 18:27:42 +0700
commitab6f6aee78fc4757fcb65bd8f4699aaf9feac3a6 (patch)
tree5d239c9725f31e00e0818063467bbe82c60ff49f /youtube_dl/extractor/kaltura.py
parent26e40542dd730b1a18f9d7eebe241972b77810cf (diff)
[kaltura] Add fallback for fileExt
Diffstat (limited to 'youtube_dl/extractor/kaltura.py')
-rw-r--r--youtube_dl/extractor/kaltura.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/kaltura.py b/youtube_dl/extractor/kaltura.py
index a57d913af..5ef382f9f 100644
--- a/youtube_dl/extractor/kaltura.py
+++ b/youtube_dl/extractor/kaltura.py
@@ -266,9 +266,12 @@ class KalturaIE(InfoExtractor):
# skip for now.
if f.get('fileExt') == 'chun':
continue
- if not f.get('fileExt') and f.get('containerFormat') == 'qt':
+ if not f.get('fileExt'):
# QT indicates QuickTime; some videos have broken fileExt
- f['fileExt'] = 'mov'
+ if f.get('containerFormat') == 'qt':
+ f['fileExt'] = 'mov'
+ else:
+ f['fileExt'] = 'mp4'
video_url = sign_url(
'%s/flavorId/%s' % (data_url, f['id']))
# audio-only has no videoCodecId (e.g. kaltura:1926081:0_c03e1b5g