aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/postprocessor/embedthumbnail.py
diff options
context:
space:
mode:
authorMrDoritos <ianmoore322@gmail.com>2019-10-08 20:02:45 -0600
committerMrDoritos <ianmoore322@gmail.com>2019-10-08 20:02:45 -0600
commita0b2ee64dbe6d4bedad9883cc8014aa77cdd0138 (patch)
tree812aa25e9f9d3e136a46b085917cac9aef15b92e /youtube_dl/postprocessor/embedthumbnail.py
parent4c8cabe8aed2123f9f2f99e3fe209f69a17a7e9b (diff)
downloadhypervideo-pre-a0b2ee64dbe6d4bedad9883cc8014aa77cdd0138.tar.lz
hypervideo-pre-a0b2ee64dbe6d4bedad9883cc8014aa77cdd0138.tar.xz
hypervideo-pre-a0b2ee64dbe6d4bedad9883cc8014aa77cdd0138.zip
[MKV Thumbnail Support] Changed from Tabs to spaces
Diffstat (limited to 'youtube_dl/postprocessor/embedthumbnail.py')
-rw-r--r--youtube_dl/postprocessor/embedthumbnail.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py
index acb7958c9..eae266dde 100644
--- a/youtube_dl/postprocessor/embedthumbnail.py
+++ b/youtube_dl/postprocessor/embedthumbnail.py
@@ -55,10 +55,10 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
os.remove(encodeFilename(filename))
os.rename(encodeFilename(temp_filename), encodeFilename(filename))
- if info['ext'] == 'mkv':
- options = [
- '-c', 'copy', '-attach', thumbnail_filename, '-metadata:s:t', 'mimetype=image/jpeg']
-
+ if info['ext'] == 'mkv':
+ options = [
+ '-c', 'copy', '-attach', thumbnail_filename, '-metadata:s:t', 'mimetype=image/jpeg']
+
self._downloader.to_screen('[ffmpeg] Adding thumbnail to "%s"' % filename)
self.run_ffmpeg_multiple_files([filename], temp_filename, options)