1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 11:12:40 +01:00

[instagram] prevent post 'date' overwriting file 'date' (#3392)

This commit is contained in:
Mike Fährmann 2022-12-12 11:38:48 +01:00
parent 6b6f886dcf
commit a001c9c06f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -65,6 +65,10 @@ class InstagramExtractor(Extractor):
post["count"] = len(files) post["count"] = len(files)
yield Message.Directory, post yield Message.Directory, post
if "date" in post:
del post["date"]
for file in files: for file in files:
file.update(post) file.update(post)