From a001c9c06ff6b8da7f20db348160547fb6774fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 12 Dec 2022 11:38:48 +0100 Subject: [PATCH] [instagram] prevent post 'date' overwriting file 'date' (#3392) --- gallery_dl/extractor/instagram.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gallery_dl/extractor/instagram.py b/gallery_dl/extractor/instagram.py index 24ad873b..c75c9b16 100644 --- a/gallery_dl/extractor/instagram.py +++ b/gallery_dl/extractor/instagram.py @@ -65,6 +65,10 @@ class InstagramExtractor(Extractor): post["count"] = len(files) yield Message.Directory, post + + if "date" in post: + del post["date"] + for file in files: file.update(post)