aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/postprocessor/exec.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/postprocessor/exec.py')
-rw-r--r--gallery_dl/postprocessor/exec.py12
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