[postprocessor/embedthumbnail] Do not raise exception if there is no thumbnail to embed

This commit is contained in:
Andrew Udvare 2017-03-27 01:57:59 -04:00
parent ff9d509d20
commit dc558516cc

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] Thumbnail was not found. Nothing to do.')
return [], info
thumbnail_filename = info['thumbnails'][-1]['filename']