]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[postprocessor/embedthumbnail] Allow mkv to embed thumbnails
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 20 Feb 2016 19:25:44 +0000 (03:25 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sat, 20 Feb 2016 19:32:03 +0000 (03:32 +0800)
Fixes #6046

youtube_dl/postprocessor/embedthumbnail.py

index e19dbf73d5fe36c602d9ffb83cd2d02ab39cb5e1..3bad5a266b6d51aaf0c92224a94986957da230f2 100644 (file)
@@ -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)"']