youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 59a9efe85b15e53c5928b7fdb810c150f5bf4b78
parent 0facd2af3ebfda68b79c7e2e1c575d73f9680802
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri,  2 Oct 2015 20:48:39 +0600

[ruutu] Limit resolution split to 2 pieces (Closes #7037, closes #7042)

Diffstat:
Myoutube_dl/extractor/ruutu.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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,