diff options
| author | 2020-12-13 23:07:48 -0500 | |
|---|---|---|
| committer | 2020-12-13 23:07:48 -0500 | |
| commit | 91a9e964cb02f9c0d6e5c3b254378778f295b6b3 (patch) | |
| tree | 9befdc2987a39d015c9829f836002de3eda8253f /gallery_dl/postprocessor/classify.py | |
| parent | 9a430174e9ee690675d3772b27994b60041de51a (diff) | |
| parent | 8f7c87a2697113134c311aaeafd9c919555a2741 (diff) | |
Update upstream source from tag 'upstream/1.16.0'
Update to upstream version '1.16.0'
with Debian dir a323dcdcc7c5a90d7d0ad623d392e091f56dbe52
Diffstat (limited to 'gallery_dl/postprocessor/classify.py')
| -rw-r--r-- | gallery_dl/postprocessor/classify.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
