aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/postprocessor/mtime.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/postprocessor/mtime.py')
-rw-r--r--gallery_dl/postprocessor/mtime.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gallery_dl/postprocessor/mtime.py b/gallery_dl/postprocessor/mtime.py
index 6ded1e2..b1269dd 100644
--- a/gallery_dl/postprocessor/mtime.py
+++ b/gallery_dl/postprocessor/mtime.py
@@ -17,8 +17,7 @@ class MtimePP(PostProcessor):
def __init__(self, job, options):
PostProcessor.__init__(self, job)
- value = options.get("value")
- if value:
+ if value := options.get("value"):
self._get = formatter.parse(value, None, util.identity).format_map
else:
key = options.get("key", "date")
@@ -36,7 +35,7 @@ class MtimePP(PostProcessor):
if mtime is None:
return
- pathfmt.kwdict["_mtime"] = (
+ pathfmt.kwdict["_mtime_meta"] = (
util.datetime_to_timestamp(mtime)
if isinstance(mtime, datetime) else
text.parse_int(mtime)