mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 10:11:52 +00:00
[adultswim] The bitrate must be an integer or None (reported in #2952)
This commit is contained in:
parent
ca14211e93
commit
d9222264a8
1 changed files with 2 additions and 1 deletions
|
@ -110,7 +110,8 @@ class AdultSwimIE(InfoExtractor):
|
||||||
'format_id': '%s-%s' % (bitrate, type),
|
'format_id': '%s-%s' % (bitrate, type),
|
||||||
'url': file_el.text,
|
'url': file_el.text,
|
||||||
'ext': self._video_extensions.get(bitrate, 'mp4'),
|
'ext': self._video_extensions.get(bitrate, 'mp4'),
|
||||||
'tbr': bitrate,
|
# The bitrate may not be a number (for example: 'iphone')
|
||||||
|
'tbr': int(bitrate) if bitrate.isdigit() else None,
|
||||||
'height': height,
|
'height': height,
|
||||||
'width': width
|
'width': width
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue