A feature-rich command-line audio/video downloader
[MKV Thumbnail Support] Now has the correct file name in MKV container
MrDoritos50d8b605290b
diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.pyindex 7955822590..4393c4e7a9 100644--- a/youtube_dl/postprocessor/embedthumbnail.py+++ b/youtube_dl/postprocessor/embedthumbnail.py@@ -55,15 +55,11 @@ class EmbedThumbnailPP(FFmpegPostProcessor):os.remove(encodeFilename(filename))os.rename(encodeFilename(temp_filename), encodeFilename(filename))-<<<<<<< HEADelif info['ext'] == 'mkv':os.rename(encodeFilename(thumbnail_filename), encodeFilename('cover.jpg'))old_thumbnail_filename = thumbnail_filenamethumbnail_filename = 'cover.jpg'-=======- if info['ext'] == 'mkv':->>>>>>> a0b2ee64dbe6d4bedad9883cc8014aa77cdd0138options = ['-c', 'copy', '-attach', thumbnail_filename, '-metadata:s:t', 'mimetype=image/jpeg']@@ -73,11 +69,8 @@ class EmbedThumbnailPP(FFmpegPostProcessor):if not self._already_have_thumbnail:os.remove(encodeFilename(thumbnail_filename))-<<<<<<< HEADelse:os.rename(encodeFilename(thumbnail_filename), encodeFilename(old_thumbnail_filename))-=======->>>>>>> a0b2ee64dbe6d4bedad9883cc8014aa77cdd0138os.remove(encodeFilename(filename))os.rename(encodeFilename(temp_filename), encodeFilename(filename))