mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[ThumbnailsConvertor] Fix for when there are no thumbnails
Closes #2125
This commit is contained in:
		| @@ -1092,12 +1092,12 @@ class FFmpegThumbnailsConvertorPP(FFmpegPostProcessor): | |||||||
|         files_to_delete = [] |         files_to_delete = [] | ||||||
|         has_thumbnail = False |         has_thumbnail = False | ||||||
|  |  | ||||||
|         for idx, thumbnail_dict in enumerate(info['thumbnails']): |         for idx, thumbnail_dict in enumerate(info.get('thumbnails') or []): | ||||||
|             if 'filepath' not in thumbnail_dict: |             original_thumbnail = thumbnail_dict.get('filepath') | ||||||
|  |             if not original_thumbnail: | ||||||
|                 continue |                 continue | ||||||
|             has_thumbnail = True |             has_thumbnail = True | ||||||
|             self.fixup_webp(info, idx) |             self.fixup_webp(info, idx) | ||||||
|             original_thumbnail = thumbnail_dict['filepath'] |  | ||||||
|             _, thumbnail_ext = os.path.splitext(original_thumbnail) |             _, thumbnail_ext = os.path.splitext(original_thumbnail) | ||||||
|             if thumbnail_ext: |             if thumbnail_ext: | ||||||
|                 thumbnail_ext = thumbnail_ext[1:].lower() |                 thumbnail_ext = thumbnail_ext[1:].lower() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan