aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/postprocessor/mtime.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2019-08-26 19:34:50 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2019-08-26 19:34:50 -0400
commitfbaff8b82a85ba1dcfa16da8af8cd98c56c9903c (patch)
tree9c903ffe82e7df731ed424d5a578deb9ffb5cfc8 /gallery_dl/postprocessor/mtime.py
parentfef60edee30ad08f646386be4c7f4c0ef0af7867 (diff)
parentb75d158d014d6c43d7d785c46c9372a9cf84d144 (diff)
Update upstream source from tag 'upstream/1.10.2'
Update to upstream version '1.10.2' with Debian dir 1bbf2d0fa89411dabf6ec214a5c9df700cb070ab
Diffstat (limited to 'gallery_dl/postprocessor/mtime.py')
-rw-r--r--gallery_dl/postprocessor/mtime.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gallery_dl/postprocessor/mtime.py b/gallery_dl/postprocessor/mtime.py
index 03d2f11..7065428 100644
--- a/gallery_dl/postprocessor/mtime.py
+++ b/gallery_dl/postprocessor/mtime.py
@@ -19,9 +19,9 @@ class MtimePP(PostProcessor):
self.key = options.get("key", "date")
def run(self, pathfmt):
- mtime = pathfmt.keywords.get(self.key)
+ mtime = pathfmt.kwdict.get(self.key)
ts = getattr(mtime, "timestamp", None)
- pathfmt.keywords["_mtime"] = ts() if ts else parse_int(mtime)
+ pathfmt.kwdict["_mtime"] = ts() if ts else parse_int(mtime)
__postprocessor__ = MtimePP