diff options
author | fluks <fluks.github@gmail.com> | 2015-10-02 04:08:13 +0300 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-02 20:48:14 +0600 |
commit | 0facd2af3ebfda68b79c7e2e1c575d73f9680802 (patch) | |
tree | c872abcf1cb3f2037d354724cb5fb8bb21154b1a | |
parent | 7d0ada5ff907824c66c466ee9b83008210250d5f (diff) |
Fix ruutu extractor bug
If there's no resolution attribute in xml, only width gets a
value, height doesn't and ValueError is raised.
-rw-r--r-- | youtube_dl/extractor/ruutu.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ruutu.py b/youtube_dl/extractor/ruutu.py index c67ad25ce..7720f1383 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', '').split('x')] + width, height = [int_or_none(x) for x in child.get('resolution', 'x').split('x')] formats.append({ 'format_id': '%s-%s' % (proto, label if label else tbr), 'url': video_url, |