From: Sergey M․ Date: Thu, 1 Oct 2015 15:51:04 +0000 (+0600) Subject: [extractor/common] Allow float bitrates X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e7d8e98a9ffdec2502bedb21a4f043df6da225a5;p=youtube-dl [extractor/common] Allow float bitrates --- diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 2fe0d5d37..9c40d56a9 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1084,7 +1084,7 @@ class InfoExtractor(object): if not src: continue - bitrate = int_or_none(video.get('system-bitrate') or video.get('systemBitrate'), 1000) + bitrate = float_or_none(video.get('system-bitrate') or video.get('systemBitrate'), 1000) filesize = int_or_none(video.get('size') or video.get('fileSize')) width = int_or_none(video.get('width')) height = int_or_none(video.get('height'))