diff options
author | Sergey M․ <[email protected]> | 2015-11-21 01:38:08 +0600 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2015-11-21 01:38:08 +0600 |
commit | d80a39cec89e8ddfc3090c3d1b10d3fe105791e1 (patch) | |
tree | 8e85da65f4f52ea0d1db21f38631bb33c3ad534e | |
parent | 5b5fae5f2004e5a1be36551bf477f74161d4f9ac (diff) | |
download | youtube-dl-d80a39cec89e8ddfc3090c3d1b10d3fe105791e1.tar.gz youtube-dl-d80a39cec89e8ddfc3090c3d1b10d3fe105791e1.zip |
[kaltura] Improve
-rw-r--r-- | youtube_dl/extractor/kaltura.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/youtube_dl/extractor/kaltura.py b/youtube_dl/extractor/kaltura.py index 39e038659..1eaa09fea 100644 --- a/youtube_dl/extractor/kaltura.py +++ b/youtube_dl/extractor/kaltura.py @@ -149,14 +149,14 @@ class KalturaIE(InfoExtractor): video_url += '?referrer=%s' % referrer formats.append({ 'format_id': '%(fileExt)s-%(bitrate)s' % f, - 'ext': f['fileExt'], - 'tbr': f['bitrate'], - 'fps': f.get('frameRate'), + 'ext': f.get('fileExt'), + 'tbr': int_or_none(f['bitrate']), + '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'), - 'height': f.get('height'), - 'width': f.get('width'), + 'height': int_or_none(f.get('height')), + 'width': int_or_none(f.get('width')), 'url': video_url, }) self._check_formats(formats, entry_id) |