diff options
| author | 2022-05-26 23:57:10 -0400 | |
|---|---|---|
| committer | 2022-05-26 23:57:10 -0400 | |
| commit | 5c903a88dee75fe65fee8cbf337e6a6217eda8ce (patch) | |
| tree | 83b8d6427272f24829e7b01930801a98b4bba5e2 /gallery_dl/postprocessor | |
| parent | 742762724a171c3171cca4d6680d03ba10e003d6 (diff) | |
| parent | ad61a6d8122973534ab63df48f6090954bc73db6 (diff) | |
Update upstream source from tag 'upstream/1.22.0'
Update to upstream version '1.22.0'
with Debian dir f597b243649bdb1feca741d6879e2c79e5237cde
Diffstat (limited to 'gallery_dl/postprocessor')
| -rw-r--r-- | gallery_dl/postprocessor/metadata.py | 2 | ||||
| -rw-r--r-- | gallery_dl/postprocessor/ugoira.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gallery_dl/postprocessor/metadata.py b/gallery_dl/postprocessor/metadata.py index 5e8f3e9..4e86239 100644 --- a/gallery_dl/postprocessor/metadata.py +++ b/gallery_dl/postprocessor/metadata.py @@ -95,7 +95,7 @@ class MetadataPP(PostProcessor): with open(path, "w", encoding="utf-8") as fp: self.write(fp, pathfmt.kwdict) except FileNotFoundError: - os.makedirs(directory, exist_ok=True) + os.makedirs(directory) with open(path, "w", encoding="utf-8") as fp: self.write(fp, pathfmt.kwdict) diff --git a/gallery_dl/postprocessor/ugoira.py b/gallery_dl/postprocessor/ugoira.py index fb57e84..0b4c259 100644 --- a/gallery_dl/postprocessor/ugoira.py +++ b/gallery_dl/postprocessor/ugoira.py @@ -119,6 +119,9 @@ class UgoiraPP(PostProcessor): if self.args: args += self.args + # ensure target directory exists + os.makedirs(pathfmt.realdirectory, exist_ok=True) + # invoke ffmpeg try: if self.twopass: |
