mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:25:15 +00:00 
			
		
		
		
	[senate] Simplify
There isn't any problem if the 'formats' field only has one element
This commit is contained in:
		@@ -133,15 +133,9 @@ class SenateISVPIE(InfoExtractor):
 | 
			
		||||
 | 
			
		||||
            self._sort_formats(formats)
 | 
			
		||||
 | 
			
		||||
        info_dict = {
 | 
			
		||||
        return {
 | 
			
		||||
            'id': video_id,
 | 
			
		||||
            'title': title,
 | 
			
		||||
            'formats': formats,
 | 
			
		||||
            'thumbnail': thumbnail,
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if len(formats) >= 1:
 | 
			
		||||
            info_dict.update({'formats': formats})
 | 
			
		||||
        else:
 | 
			
		||||
            info_dict.update(formats[0])
 | 
			
		||||
 | 
			
		||||
        return info_dict
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user