diff options
| author | 2020-12-30 18:41:48 -0500 | |
|---|---|---|
| committer | 2020-12-30 18:41:48 -0500 | |
| commit | 87a5aa088ce33a1196ff409b76a9ea8233bdc634 (patch) | |
| tree | 7e6155edcc5dd12e40b47ad814b3bc69e65c52fc /gallery_dl/postprocessor | |
| parent | 8f7c87a2697113134c311aaeafd9c919555a2741 (diff) | |
New upstream version 1.16.1.upstream/1.16.1
Diffstat (limited to 'gallery_dl/postprocessor')
| -rw-r--r-- | gallery_dl/postprocessor/exec.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gallery_dl/postprocessor/exec.py b/gallery_dl/postprocessor/exec.py index 205f42e..5a54a77 100644 --- a/gallery_dl/postprocessor/exec.py +++ b/gallery_dl/postprocessor/exec.py @@ -30,8 +30,6 @@ class ExecPP(PostProcessor): args = options["command"] if isinstance(args, str): - if "{}" not in args: - args += " {}" self.args = args execute = self.exec_string else: @@ -77,12 +75,12 @@ class ExecPP(PostProcessor): self.log.debug("Running '%s'", args) retcode = subprocess.Popen(args, shell=shell).wait() if retcode: - self.log.warning( - "Executing '%s' returned with non-zero exit status (%d)", - " ".join(args) if isinstance(args, list) else args, retcode) + self.log.warning("'%s' returned with non-zero exit status (%d)", + args, retcode) - def _exec_async(self, args): - subprocess.Popen(args, shell=self.shell) + def _exec_async(self, args, shell): + self.log.debug("Running '%s'", args) + subprocess.Popen(args, shell=shell) __postprocessor__ = ExecPP |
