瀏覽代碼

[postprocessor/embedthumbnail] Allow mkv to embed thumbnails

Fixes #6046
Yen Chi Hsuan 9 年之前
父節點
當前提交
7360db05b4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/postprocessor/embedthumbnail.py

+ 1 - 1
youtube_dl/postprocessor/embedthumbnail.py

@@ -40,7 +40,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
                 'Skipping embedding the thumbnail because the file is missing.')
                 'Skipping embedding the thumbnail because the file is missing.')
             return [], info
             return [], info
 
 
-        if info['ext'] == 'mp3':
+        if info['ext'] in ('mp3', 'mkv'):
             options = [
             options = [
                 '-c', 'copy', '-map', '0', '-map', '1',
                 '-c', 'copy', '-map', '0', '-map', '1',
                 '-metadata:s:v', 'title="Album cover"', '-metadata:s:v', 'comment="Cover (Front)"']
                 '-metadata:s:v', 'title="Album cover"', '-metadata:s:v', 'comment="Cover (Front)"']