aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/postprocessor/embedthumbnail.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-05-14 04:41:30 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-05-14 04:41:30 +0800
commit2cc6d135479c5dbd6e715a1e767c5be163cd22ce (patch)
tree19d91a7eef506ef1716185676ed47b489514f439 /youtube_dl/postprocessor/embedthumbnail.py
parentbb8ca1d112e95cd3fe48fff5af980a62a9db2572 (diff)
[postprocessor/embedthumbnail] Encode arguments in calling AtomicParsley
Diffstat (limited to 'youtube_dl/postprocessor/embedthumbnail.py')
-rw-r--r--youtube_dl/postprocessor/embedthumbnail.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py
index 4e08c2709..8f825f785 100644
--- a/youtube_dl/postprocessor/embedthumbnail.py
+++ b/youtube_dl/postprocessor/embedthumbnail.py
@@ -9,6 +9,7 @@ from .ffmpeg import FFmpegPostProcessor
from ..utils import (
check_executable,
+ encodeArgument,
encodeFilename,
PostProcessingError,
prepend_extension,
@@ -52,7 +53,12 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
if not check_executable('AtomicParsley', ['-v']):
raise EmbedThumbnailPPError('AtomicParsley was not found. Please install.')
- cmd = ['AtomicParsley', filename, '--artwork', thumbnail_filename, '-o', temp_filename]
+ cmd = [encodeFilename('AtomicParsley', True),
+ encodeFilename(filename, True),
+ encodeArgument('--artwork'),
+ encodeFilename(thumbnail_filename, True),
+ encodeArgument('-o'),
+ encodeFilename(temp_filename, True)]
self._downloader.to_screen('[atomicparsley] Adding thumbnail to "%s"' % filename)