A feature-rich command-line audio/video downloader
[postprocessor/embedthumbnail] Skip embedding when there aren't any thumbnails
Andrew Udvareb5cbe3d65250
diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.pyindex e606a58de8..56be914b8f 100644--- a/youtube_dl/postprocessor/embedthumbnail.py+++ b/youtube_dl/postprocessor/embedthumbnail.py@@ -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 [], infothumbnail_filename = info['thumbnails'][-1]['filename']