youtube-dl

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

commit c33a8639a7c1f783297f29282b48fceec9a0b84a
parent 25fa8d66e653d443522bf10140106f88711d1d66
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date:   Thu, 18 Jun 2015 22:05:02 +0800

[postprocessor/embedthumbnail] Skipping if thumbnail file missing

Fixes #5996

Diffstat:
Myoutube_dl/postprocessor/embedthumbnail.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py @@ -35,6 +35,11 @@ class EmbedThumbnailPP(FFmpegPostProcessor): thumbnail_filename = info['thumbnails'][-1]['filename'] + if not os.path.exists(encodeFilename(thumbnail_filename)): + self._downloader.report_warning( + 'Skipping embedding the thumbnail because the file is missing.') + return [], info + if info['ext'] == 'mp3': options = [ '-c', 'copy', '-map', '0', '-map', '1',