about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Udvare <Tatsh@users.noreply.github.com>2018-02-25 07:33:13 -0500
committerSergey M <dstftw@gmail.com>2018-02-25 19:33:13 +0700
commitb5cbe3d65250d283443cb9a920efabb3b495f774 (patch)
treee6c17b0caca80acb55e9a6591bb2fab11a13033b
parentece12e6348eb01f5d67d4c9443b1dd928ef72ba6 (diff)
downloadyoutube-dl-b5cbe3d65250d283443cb9a920efabb3b495f774.tar.gz
youtube-dl-b5cbe3d65250d283443cb9a920efabb3b495f774.tar.xz
youtube-dl-b5cbe3d65250d283443cb9a920efabb3b495f774.zip
[postprocessor/embedthumbnail] Skip embedding when there aren't any thumbnails
-rw-r--r--youtube_dl/postprocessor/embedthumbnail.py3
1 files changed, 2 insertions, 1 deletions
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']