aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor/embedthumbnail.py
diff options
context:
space:
mode:
authorLesmiscore <nao20010128@gmail.com>2023-03-28 01:17:42 +0900
committerGitHub <noreply@github.com>2023-03-28 01:17:42 +0900
commit0f0875ed555514f32522a0f30554fb08825d5124 (patch)
tree9fc48d27933fccf8e2b291e013cf6a6eb9289d7c /yt_dlp/postprocessor/embedthumbnail.py
parent95a383be1b6fb00c92ee3fb091732c4f6009acb6 (diff)
downloadhypervideo-pre-0f0875ed555514f32522a0f30554fb08825d5124.tar.lz
hypervideo-pre-0f0875ed555514f32522a0f30554fb08825d5124.tar.xz
hypervideo-pre-0f0875ed555514f32522a0f30554fb08825d5124.zip
[postprocessor/EmbedThumbnail,postprocessor/FFmpegMetadata] Fix error on attaching thumbnails and info json for mkv/mka (#6647)
Authored by: Lesmiscore Current yt-dlp code never hit this bug, but would hit once filename sanitization gets better
Diffstat (limited to 'yt_dlp/postprocessor/embedthumbnail.py')
-rw-r--r--yt_dlp/postprocessor/embedthumbnail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/postprocessor/embedthumbnail.py b/yt_dlp/postprocessor/embedthumbnail.py
index b02d9d499..88a767132 100644
--- a/yt_dlp/postprocessor/embedthumbnail.py
+++ b/yt_dlp/postprocessor/embedthumbnail.py
@@ -107,7 +107,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
options.extend(['-map', '-0:%d' % old_stream])
new_stream -= 1
options.extend([
- '-attach', thumbnail_filename,
+ '-attach', self._ffmpeg_filename_argument(thumbnail_filename),
'-metadata:s:%d' % new_stream, 'mimetype=%s' % mimetype,
'-metadata:s:%d' % new_stream, 'filename=cover.%s' % thumbnail_ext])