mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 01:25:11 +00:00
[postprocessor/embedthumbnail] Encode arguments in calling AtomicParsley
This commit is contained in:
parent
bb8ca1d112
commit
2cc6d13547
1 changed files with 7 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
check_executable,
|
check_executable,
|
||||||
|
encodeArgument,
|
||||||
encodeFilename,
|
encodeFilename,
|
||||||
PostProcessingError,
|
PostProcessingError,
|
||||||
prepend_extension,
|
prepend_extension,
|
||||||
|
@ -52,7 +53,12 @@ def run(self, info):
|
||||||
if not check_executable('AtomicParsley', ['-v']):
|
if not check_executable('AtomicParsley', ['-v']):
|
||||||
raise EmbedThumbnailPPError('AtomicParsley was not found. Please install.')
|
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)
|
self._downloader.to_screen('[atomicparsley] Adding thumbnail to "%s"' % filename)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue