aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/postprocessor/exec.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-12-30 18:41:56 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2020-12-30 18:41:56 -0500
commitaa3aaca425176a2017255ff474c5af2d6bb8525b (patch)
treec3f876074e58f3d1d053a459c7e1738526a8788d /gallery_dl/postprocessor/exec.py
parent176b3d1c174fb9fb74514eed0c1dc1e9636e89b9 (diff)
parent87a5aa088ce33a1196ff409b76a9ea8233bdc634 (diff)
Update upstream source from tag 'upstream/1.16.1'
Update to upstream version '1.16.1' with Debian dir e25ca57b32218e964e40338f4bc0b67a7dec5108
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