aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-02 20:48:39 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-02 20:48:39 +0600
commit59a9efe85b15e53c5928b7fdb810c150f5bf4b78 (patch)
tree9b5cb4f42872ff4cc01f3cdff68ef8dc337b4171 /youtube_dl/extractor
parent0facd2af3ebfda68b79c7e2e1c575d73f9680802 (diff)
[ruutu] Limit resolution split to 2 pieces (Closes #7037, closes #7042)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/ruutu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ruutu.py b/youtube_dl/extractor/ruutu.py
index 7720f1383..a16b73ff4 100644
--- 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,