mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 14:37:43 +01:00
[adultswim] The bitrate must be an integer or None (reported in #2952)
This commit is contained in:
parent
ca14211e93
commit
d9222264a8
@ -110,7 +110,8 @@ def _real_extract(self, url):
|
||||
'format_id': '%s-%s' % (bitrate, type),
|
||||
'url': file_el.text,
|
||||
'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,
|
||||
'width': width
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user