Browse Source

[kaltura] Add fallback for fileExt

master-ytdl-org
Sergey M․ 8 years ago
parent
commit
ab6f6aee78
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      youtube_dl/extractor/kaltura.py

+ 5
- 2
youtube_dl/extractor/kaltura.py View File

@ -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


Loading…
Cancel
Save