aboutsummaryrefslogtreecommitdiff
path: root/youtube_dlc/postprocessor/embedthumbnail.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-01-20 21:37:40 +0530
committerpukkandan <pukkandan@gmail.com>2021-01-21 01:36:10 +0530
commit43820c0370acaf8306880f235364535c1c92c157 (patch)
tree05a3f4c414381a184accba0c8fde8a2090fd746d /youtube_dlc/postprocessor/embedthumbnail.py
parent5c610515c90d090b66aa3d86be86fb06dff8457f (diff)
Improved passing of multiple postprocessor-args
* Added `PP+exe:args` syntax If `PP+exe:args` is specifically given, only it used. Otherwise, `PP:args` and `exe:args` are combined. If none of the `PP`, `exe` or `PP+exe` args are given, `default` is used `Default` is purposely left undocumented since it exists only for backward compatibility * Also added proper handling of args in `EmbedThumbnail` Related: https://github.com/ytdl-org/youtube-dl/pull/27723
Diffstat (limited to 'youtube_dlc/postprocessor/embedthumbnail.py')
-rw-r--r--youtube_dlc/postprocessor/embedthumbnail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dlc/postprocessor/embedthumbnail.py b/youtube_dlc/postprocessor/embedthumbnail.py
index b43b0d94f..98a3531f1 100644
--- a/youtube_dlc/postprocessor/embedthumbnail.py
+++ b/youtube_dlc/postprocessor/embedthumbnail.py
@@ -24,7 +24,6 @@ class EmbedThumbnailPPError(PostProcessingError):
class EmbedThumbnailPP(FFmpegPostProcessor):
- PP_NAME = 'EmbedThumbnail'
def __init__(self, downloader=None, already_have_thumbnail=False):
super(EmbedThumbnailPP, self).__init__(downloader)
@@ -102,6 +101,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
encodeFilename(thumbnail_filename, True),
encodeArgument('-o'),
encodeFilename(temp_filename, True)]
+ cmd += [encodeArgument(o) for o in self._configuration_args(exe='AtomicParsley')]
self.to_screen('Adding thumbnail to "%s"' % filename)
self.write_debug('AtomicParsley command line: %s' % shell_quote(cmd))