mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[YoutubeDL] Handle None width and height similarly to formats
This commit is contained in:
		@@ -1008,7 +1008,7 @@ class YoutubeDL(object):
 | 
				
			|||||||
                t.get('preference'), t.get('width'), t.get('height'),
 | 
					                t.get('preference'), t.get('width'), t.get('height'),
 | 
				
			||||||
                t.get('id'), t.get('url')))
 | 
					                t.get('id'), t.get('url')))
 | 
				
			||||||
            for i, t in enumerate(thumbnails):
 | 
					            for i, t in enumerate(thumbnails):
 | 
				
			||||||
                if 'width' in t and 'height' in t:
 | 
					                if t.get('width') and t.get('height'):
 | 
				
			||||||
                    t['resolution'] = '%dx%d' % (t['width'], t['height'])
 | 
					                    t['resolution'] = '%dx%d' % (t['width'], t['height'])
 | 
				
			||||||
                if t.get('id') is None:
 | 
					                if t.get('id') is None:
 | 
				
			||||||
                    t['id'] = '%d' % i
 | 
					                    t['id'] = '%d' % i
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user