1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-25 01:01:39 +00:00

[kaltura] Add fallback for fileExt

This commit is contained in:
Sergey M․ 2017-01-28 18:27:42 +07:00
parent 26e40542dd
commit ab6f6aee78
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

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