summaryrefslogtreecommitdiffstats
path: root/gallery_dl/postprocessor/ugoira.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-11-22 04:28:38 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2022-11-22 04:28:38 -0500
commit7af5cc29d1c02d20a6890b7b7ba78ab41532a763 (patch)
tree4f0366e5653074c7eb31ac7ca59a1ee55f2d736e /gallery_dl/postprocessor/ugoira.py
parente59d46ecda74190381b1d2725b0bd9df5c0be8d8 (diff)
New upstream version 1.24.0.upstream/1.24.0
Diffstat (limited to 'gallery_dl/postprocessor/ugoira.py')
-rw-r--r--gallery_dl/postprocessor/ugoira.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/gallery_dl/postprocessor/ugoira.py b/gallery_dl/postprocessor/ugoira.py
index 98c8246..9d2cb34 100644
--- a/gallery_dl/postprocessor/ugoira.py
+++ b/gallery_dl/postprocessor/ugoira.py
@@ -90,15 +90,17 @@ class UgoiraPP(PostProcessor):
if pathfmt.extension != "zip":
return
- if "frames" in pathfmt.kwdict:
- self._frames = pathfmt.kwdict["frames"]
- elif "pixiv_ugoira_frame_data" in pathfmt.kwdict:
- self._frames = pathfmt.kwdict["pixiv_ugoira_frame_data"]["data"]
+ kwdict = pathfmt.kwdict
+ if "frames" in kwdict:
+ self._frames = kwdict["frames"]
+ elif "pixiv_ugoira_frame_data" in kwdict:
+ self._frames = kwdict["pixiv_ugoira_frame_data"]["data"]
else:
return
if self.delete:
pathfmt.set_extension(self.extension)
+ pathfmt.build_path()
def convert(self, pathfmt):
if not self._frames:
@@ -115,6 +117,8 @@ class UgoiraPP(PostProcessor):
# process frames and collect command-line arguments
pathfmt.set_extension(self.extension)
+ pathfmt.build_path()
+
args = self._process(pathfmt, tempdir)
if self.args:
args += self.args
@@ -151,6 +155,7 @@ class UgoiraPP(PostProcessor):
pathfmt.delete = True
else:
pathfmt.set_extension("zip")
+ pathfmt.build_path()
def _exec(self, args):
self.log.debug(args)