mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-28 09:31:01 +01:00
[postprocessor/embedthumbnail] Skip embedding when there aren't any thumbnails
This commit is contained in:
parent
ece12e6348
commit
b5cbe3d652
@ -31,7 +31,8 @@ def run(self, info):
|
|||||||
temp_filename = prepend_extension(filename, 'temp')
|
temp_filename = prepend_extension(filename, 'temp')
|
||||||
|
|
||||||
if not info.get('thumbnails'):
|
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']
|
thumbnail_filename = info['thumbnails'][-1]['filename']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user