mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-14 23:32:33 +00:00
Fix ruutu extractor bug
If there's no resolution attribute in xml, only width gets a value, height doesn't and ValueError is raised.
This commit is contained in:
parent
7d0ada5ff9
commit
0facd2af3e
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class RuutuIE(InfoExtractor):
|
||||||
preference = -1 if proto == 'rtmp' else 1
|
preference = -1 if proto == 'rtmp' else 1
|
||||||
label = child.get('label')
|
label = child.get('label')
|
||||||
tbr = int_or_none(child.get('bitrate'))
|
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({
|
formats.append({
|
||||||
'format_id': '%s-%s' % (proto, label if label else tbr),
|
'format_id': '%s-%s' % (proto, label if label else tbr),
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
|
|
Loading…
Reference in a new issue