Browse Source

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

master-ytdl-org
Andrew Udvare 7 years ago
committed by Sergey M
parent
commit
b5cbe3d652
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/postprocessor/embedthumbnail.py

+ 2
- 1
youtube_dl/postprocessor/embedthumbnail.py 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']


Loading…
Cancel
Save