1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-06 01:22:35 +00:00

[postprocessor/embedthumbnail] Skip embedding when there aren't any thumbnails

This commit is contained in:
Andrew Udvare 2018-02-25 07:33:13 -05:00 committed by Sergey M
parent ece12e6348
commit b5cbe3d652

View File

@ -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']