diff options
Diffstat (limited to 'gallery_dl/downloader/http.py')
| -rw-r--r-- | gallery_dl/downloader/http.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gallery_dl/downloader/http.py b/gallery_dl/downloader/http.py index faea9e5..c58e2fb 100644 --- a/gallery_dl/downloader/http.py +++ b/gallery_dl/downloader/http.py @@ -322,7 +322,10 @@ class HttpDownloader(DownloaderBase): self.downloading = False if self.mtime: - kwdict.setdefault("_mtime", response.headers.get("Last-Modified")) + if "_http_lastmodified" in kwdict: + kwdict["_mtime"] = kwdict["_http_lastmodified"] + else: + kwdict["_mtime"] = response.headers.get("Last-Modified") else: kwdict["_mtime"] = None |
