youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit b5cbe3d65250d283443cb9a920efabb3b495f774
parent ece12e6348eb01f5d67d4c9443b1dd928ef72ba6
Author: Andrew Udvare <Tatsh@users.noreply.github.com>
Date:   Sun, 25 Feb 2018 07:33:13 -0500

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


Diffstat:
Myoutube_dl/postprocessor/embedthumbnail.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py @@ -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']