mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[YoutubeDL] Restore filename for thumbnails
This commit is contained in:
		| @@ -1849,7 +1849,7 @@ class YoutubeDL(object): | |||||||
|             thumb_ext = determine_ext(t['url'], 'jpg') |             thumb_ext = determine_ext(t['url'], 'jpg') | ||||||
|             suffix = '_%s' % t['id'] if len(thumbnails) > 1 else '' |             suffix = '_%s' % t['id'] if len(thumbnails) > 1 else '' | ||||||
|             thumb_display_id = '%s ' % t['id'] if len(thumbnails) > 1 else '' |             thumb_display_id = '%s ' % t['id'] if len(thumbnails) > 1 else '' | ||||||
|             thumb_filename = os.path.splitext(filename)[0] + suffix + '.' + thumb_ext |             t['filename'] = thumb_filename = os.path.splitext(filename)[0] + suffix + '.' + thumb_ext | ||||||
|  |  | ||||||
|             if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(thumb_filename)): |             if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(thumb_filename)): | ||||||
|                 self.to_screen('[%s] %s: Thumbnail %sis already present' % |                 self.to_screen('[%s] %s: Thumbnail %sis already present' % | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․