mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 03:33:02 +00:00
[kaltura] Add fallback for fileExt
This commit is contained in:
parent
26e40542dd
commit
ab6f6aee78
1 changed files with 5 additions and 2 deletions
|
@ -266,9 +266,12 @@ def sign_url(unsigned_url):
|
||||||
# skip for now.
|
# skip for now.
|
||||||
if f.get('fileExt') == 'chun':
|
if f.get('fileExt') == 'chun':
|
||||||
continue
|
continue
|
||||||
if not f.get('fileExt') and f.get('containerFormat') == 'qt':
|
if not f.get('fileExt'):
|
||||||
# QT indicates QuickTime; some videos have broken 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(
|
video_url = sign_url(
|
||||||
'%s/flavorId/%s' % (data_url, f['id']))
|
'%s/flavorId/%s' % (data_url, f['id']))
|
||||||
# audio-only has no videoCodecId (e.g. kaltura:1926081:0_c03e1b5g
|
# audio-only has no videoCodecId (e.g. kaltura:1926081:0_c03e1b5g
|
||||||
|
|
Loading…
Reference in a new issue