diff options
| author | 2024-06-06 02:40:21 -0400 | |
|---|---|---|
| committer | 2024-06-06 02:40:21 -0400 | |
| commit | ea5caef5825450c5363e358b34cc75dd064c071e (patch) | |
| tree | 041fc10d8f9e370f6f63265071197dc05b922459 /gallery_dl/postprocessor/mtime.py | |
| parent | fafdb86c116945de94562112b8958cd9cbf704ef (diff) | |
| parent | 1c28712d865e30ed752988ba0b6944882250b665 (diff) | |
Update upstream source from tag 'upstream/1.27.0'
Update to upstream version '1.27.0'
with Debian dir c97c2a359fc3b8629b579096d65e31f5d6010ce7
Diffstat (limited to 'gallery_dl/postprocessor/mtime.py')
| -rw-r--r-- | gallery_dl/postprocessor/mtime.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
