From 1c28712d865e30ed752988ba0b6944882250b665 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Thu, 6 Jun 2024 02:40:15 -0400 Subject: New upstream version 1.27.0. --- gallery_dl/postprocessor/mtime.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gallery_dl/postprocessor/mtime.py') diff --git a/gallery_dl/postprocessor/mtime.py b/gallery_dl/postprocessor/mtime.py index ea61b7b..6ded1e2 100644 --- a/gallery_dl/postprocessor/mtime.py +++ b/gallery_dl/postprocessor/mtime.py @@ -33,6 +33,9 @@ class MtimePP(PostProcessor): def run(self, pathfmt): mtime = self._get(pathfmt.kwdict) + if mtime is None: + return + pathfmt.kwdict["_mtime"] = ( util.datetime_to_timestamp(mtime) if isinstance(mtime, datetime) else -- cgit v1.2.3