diff options
| author | 2020-12-30 18:41:56 -0500 | |
|---|---|---|
| committer | 2020-12-30 18:41:56 -0500 | |
| commit | aa3aaca425176a2017255ff474c5af2d6bb8525b (patch) | |
| tree | c3f876074e58f3d1d053a459c7e1738526a8788d /gallery_dl/postprocessor/exec.py | |
| parent | 176b3d1c174fb9fb74514eed0c1dc1e9636e89b9 (diff) | |
| parent | 87a5aa088ce33a1196ff409b76a9ea8233bdc634 (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.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 |
