projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0facd2a
)
[ruutu] Limit resolution split to 2 pieces (Closes #7037, closes #7042)
author
Sergey M․
<dstftw@gmail.com>
Fri, 2 Oct 2015 14:48:39 +0000
(20:48 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 2 Oct 2015 14:48:39 +0000
(20:48 +0600)
youtube_dl/extractor/ruutu.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ruutu.py
b/youtube_dl/extractor/ruutu.py
index 7720f138336deb13b1651726f88185bfbb3850f6..a16b73ff4025fb78a9358282c6f01c523327f8e2 100644
(file)
--- a/
youtube_dl/extractor/ruutu.py
+++ b/
youtube_dl/extractor/ruutu.py
@@
-74,7
+74,7
@@
class RuutuIE(InfoExtractor):
preference = -1 if proto == 'rtmp' else 1
label = child.get('label')
tbr = int_or_none(child.get('bitrate'))
- width, height = [int_or_none(x) for x in child.get('resolution', 'x').split('x')]
+ width, height = [int_or_none(x) for x in child.get('resolution', 'x').split('x')
[:2]
]
formats.append({
'format_id': '%s-%s' % (proto, label if label else tbr),
'url': video_url,