mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 06:27:06 -05:00 
			
		
		
		
	[adultswim] The bitrate must be an integer or None (reported in #2952)
This commit is contained in:
		@@ -110,7 +110,8 @@ class AdultSwimIE(InfoExtractor):
 | 
			
		||||
                    '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
 | 
			
		||||
                })
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user