projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b3f951
)
[extractor/common] Allow float bitrates
author
Sergey M․
<dstftw@gmail.com>
Thu, 1 Oct 2015 15:51:04 +0000
(21:51 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 1 Oct 2015 16:20:15 +0000
(22:20 +0600)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 2fe0d5d37cf246d6f8c8be38576fdbf94b2c8521..9c40d56a9d71a3e2c1754e93d1052e93ba98532f 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-1084,7
+1084,7
@@
class InfoExtractor(object):
if not src:
continue
- bitrate =
in
t_or_none(video.get('system-bitrate') or video.get('systemBitrate'), 1000)
+ bitrate =
floa
t_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'))