From 8f7c87a2697113134c311aaeafd9c919555a2741 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 13 Dec 2020 23:07:42 -0500 Subject: New upstream version 1.16.0. --- gallery_dl/postprocessor/classify.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gallery_dl/postprocessor/classify.py') diff --git a/gallery_dl/postprocessor/classify.py b/gallery_dl/postprocessor/classify.py index 0106903..eda092d 100644 --- a/gallery_dl/postprocessor/classify.py +++ b/gallery_dl/postprocessor/classify.py @@ -32,13 +32,16 @@ class ClassifyPP(PostProcessor): for ext in exts } + job.hooks["prepare"].append(self.prepare) + job.hooks["file"].append(self.move) + def prepare(self, pathfmt): ext = pathfmt.extension if ext in self.mapping: # set initial paths to enable download skips self._build_paths(pathfmt, self.mapping[ext]) - def run(self, pathfmt): + def move(self, pathfmt): ext = pathfmt.extension if ext in self.mapping: # rebuild paths in case the filename extension changed -- cgit v1.2.3