mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-11-01 10:14:09 +09:00
[postprocessor/embedthumbnail] Skip embedding when there aren't any thumbnails
This commit is contained in:
1 parent
ece12e6348
commit
b5cbe3d652
1 file changed
+2
-1
@@ -31,7 +31,8 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
|
||||
temp_filename = prepend_extension(filename, 'temp')
|
||||
|
||||
if not info.get('thumbnails'):
|
||||
raise EmbedThumbnailPPError('Thumbnail was not found. Nothing to do.')
|
||||
self._downloader.to_screen('[embedthumbnail] There aren\'t any thumbnails to embed')
|
||||
return [], info
|
||||
|
||||
thumbnail_filename = info['thumbnails'][-1]['filename']
|
||||
|
||||
|
||||
Reference in new issue
Block a user