From: Yen Chi Hsuan Date: Sat, 20 Feb 2016 19:25:44 +0000 (+0800) Subject: [postprocessor/embedthumbnail] Allow mkv to embed thumbnails X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=7360db05b43741c2dfa1fd024e9c2f013ed97c9e;p=youtube-dl [postprocessor/embedthumbnail] Allow mkv to embed thumbnails Fixes #6046 --- diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py index e19dbf73d..3bad5a266 100644 --- a/youtube_dl/postprocessor/embedthumbnail.py +++ b/youtube_dl/postprocessor/embedthumbnail.py @@ -40,7 +40,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): 'Skipping embedding the thumbnail because the file is missing.') return [], info - if info['ext'] == 'mp3': + if info['ext'] in ('mp3', 'mkv'): options = [ '-c', 'copy', '-map', '0', '-map', '1', '-metadata:s:v', 'title="Album cover"', '-metadata:s:v', 'comment="Cover (Front)"']