mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[embedthumbnail] Correctly escape filename
Closes #352
The approach in [1] is faulty as can be seen in the test cases
1. bff857a8af
			
			
This commit is contained in:
		| @@ -70,7 +70,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): | ||||
|             self.to_screen('There aren\'t any thumbnails to embed') | ||||
|             return [], info | ||||
|  | ||||
|         idx = next((-(i+1) for i, t in enumerate(info['thumbnails'][::-1]) if t.get('filepath')), None) | ||||
|         idx = next((-i for i, t in enumerate(info['thumbnails'][::-1], 1) if t.get('filepath')), None) | ||||
|         if idx is None: | ||||
|             self.to_screen('There are no thumbnails on disk') | ||||
|             return [], info | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan