Merge branch 'continue-if-no-thumbnail' into cheeky

This commit is contained in:
Andrew Udvare 2017-12-04 22:09:51 -05:00
commit 0aa6c2d487
No known key found for this signature in database
GPG Key ID: 1AFD9AFC120C26DD

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