aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/postprocessor
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-01-11 03:25:49 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2021-01-11 03:25:49 -0500
commit99541ac9da24070cd241149ee54db4bf81d564b7 (patch)
tree073fefa95f7ddedf777db89bb237b51860c1f32f /gallery_dl/postprocessor
parentbc18b55e1dd21a4528241926df6302182404fb5a (diff)
parent6335711bbe769b6b9301a88d88790d7a2f8aa82e (diff)
Update upstream source from tag 'upstream/1.16.3'
Update to upstream version '1.16.3' with Debian dir 9f836edb40c3d6f8084f75a5c1e53b6a52613e4f
Diffstat (limited to 'gallery_dl/postprocessor')
-rw-r--r--gallery_dl/postprocessor/metadata.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gallery_dl/postprocessor/metadata.py b/gallery_dl/postprocessor/metadata.py
index 27f9c03..71a67c1 100644
--- a/gallery_dl/postprocessor/metadata.py
+++ b/gallery_dl/postprocessor/metadata.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-# Copyright 2019-2020 Mike Fährmann
+# Copyright 2019-2021 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -86,7 +86,8 @@ class MetadataPP(PostProcessor):
return (pathfmt.filename or "metadata") + "." + self.extension
def _filename_custom(self, pathfmt):
- return self._filename_fmt(pathfmt.kwdict)
+ return pathfmt.clean_path(pathfmt.clean_segment(
+ self._filename_fmt(pathfmt.kwdict)))
def _filename_extfmt(self, pathfmt):
kwdict = pathfmt.kwdict