diff options
author | Sergey M․ <[email protected]> | 2016-09-12 22:43:45 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2016-09-12 22:43:45 +0700 |
commit | 1d16035bb4ec516d25326ce5ff35affb4ff1f13c (patch) | |
tree | f98976dbd6780ac477ef0bc87b3e4a576e1ca13a /youtube_dl/extractor/kaltura.py | |
parent | e8bcd982ccee87e45a5cc8b116cc4452c81b0453 (diff) | |
download | youtube-dl-1d16035bb4ec516d25326ce5ff35affb4ff1f13c.tar.gz youtube-dl-1d16035bb4ec516d25326ce5ff35affb4ff1f13c.zip |
[kaltura] Improve audio detection
Diffstat (limited to 'youtube_dl/extractor/kaltura.py')
-rw-r--r-- | youtube_dl/extractor/kaltura.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/kaltura.py b/youtube_dl/extractor/kaltura.py index 22a06e4ae..5a8403777 100644 --- a/youtube_dl/extractor/kaltura.py +++ b/youtube_dl/extractor/kaltura.py @@ -268,6 +268,10 @@ class KalturaIE(InfoExtractor): continue video_url = sign_url( '%s/flavorId/%s' % (data_url, f['id'])) + # audio-only has no videoCodecId (e.g. kaltura:1926081:0_c03e1b5g + # -f mp4-56) + vcodec = 'none' if 'videoCodecId' not in f and f.get( + 'frameRate') == 0 else f.get('videoCodecId') formats.append({ 'format_id': '%(fileExt)s-%(bitrate)s' % f, 'ext': f.get('fileExt'), @@ -275,7 +279,7 @@ class KalturaIE(InfoExtractor): 'fps': int_or_none(f.get('frameRate')), 'filesize_approx': int_or_none(f.get('size'), invscale=1024), 'container': f.get('containerFormat'), - 'vcodec': f.get('videoCodecId'), + 'vcodec': vcodec, 'height': int_or_none(f.get('height')), 'width': int_or_none(f.get('width')), 'url': video_url, |