fix Last-Modified mtime overwriting post processor mtime (#7529)
https://github.com/mikf/gallery-dl/issues/7529#issuecomment-2989955455 - split '_mtime' into '_mtime_http' and '_mtime_meta' - add PathFormat.set_mtime() method
This commit is contained in:
@@ -139,9 +139,7 @@ class MetadataPP(PostProcessor):
|
||||
archive.add(pathfmt.kwdict)
|
||||
|
||||
if self.mtime:
|
||||
mtime = pathfmt.kwdict.get("_mtime")
|
||||
if mtime:
|
||||
util.set_mtime(path, mtime)
|
||||
pathfmt.set_mtime(path)
|
||||
|
||||
def _run_stdout(self, pathfmt):
|
||||
self.write(sys.stdout, pathfmt.kwdict)
|
||||
|
||||
Reference in New Issue
Block a user