]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[extractor/common] Allow float bitrates
authorSergey M․ <dstftw@gmail.com>
Thu, 1 Oct 2015 15:51:04 +0000 (21:51 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 1 Oct 2015 16:20:15 +0000 (22:20 +0600)
youtube_dl/extractor/common.py

index 2fe0d5d37cf246d6f8c8be38576fdbf94b2c8521..9c40d56a9d71a3e2c1754e93d1052e93ba98532f 100644 (file)
@@ -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'))