diff options
| author | 2020-04-14 18:18:40 -0400 | |
|---|---|---|
| committer | 2020-04-14 18:18:40 -0400 | |
| commit | cf188f30e1c27bdb900fa2623a9ff91b944633b2 (patch) | |
| tree | 94803cd79aa8aaefd09d9bbc7b9c8029b415c885 /gallery_dl/downloader/http.py | |
| parent | e4887ae6b00c50fbbde531cc274c77b076bd821d (diff) | |
New upstream version 1.13.4upstream/1.13.4
Diffstat (limited to 'gallery_dl/downloader/http.py')
| -rw-r--r-- | gallery_dl/downloader/http.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gallery_dl/downloader/http.py b/gallery_dl/downloader/http.py index 844e422..64a2978 100644 --- a/gallery_dl/downloader/http.py +++ b/gallery_dl/downloader/http.py @@ -164,7 +164,11 @@ class HttpDownloader(DownloaderBase): self.downloading = False if self.mtime: - pathfmt.kwdict["_mtime"] = response.headers.get("Last-Modified") + pathfmt.kwdict.setdefault( + "_mtime", response.headers.get("Last-Modified")) + else: + pathfmt.kwdict["_mtime"] = None + return True def receive(self, response, file): |
