[postprocessor/embedthumbnail] Do not raise exception if there is no thumbnail to embed
This commit is contained in:
parent
ff9d509d20
commit
dc558516cc
@ -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']
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user