From: Andrew Udvare Date: Sun, 25 Feb 2018 12:33:13 +0000 (-0500) Subject: [postprocessor/embedthumbnail] Skip embedding when there aren't any thumbnails X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b5cbe3d65250d283443cb9a920efabb3b495f774;p=youtube-dl [postprocessor/embedthumbnail] Skip embedding when there aren't any thumbnails --- diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py index e606a58de..56be914b8 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 [], info thumbnail_filename = info['thumbnails'][-1]['filename']