aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/common.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-01 21:51:04 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-01 22:20:15 +0600
commite7d8e98a9ffdec2502bedb21a4f043df6da225a5 (patch)
treea9aa9ac0edca1ad3099537e1a4bfafc759765cfc /youtube_dl/extractor/common.py
parent2b3f951a2e2e01adfb068eac05b976ff445db073 (diff)
[extractor/common] Allow float bitrates
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
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'))