From 444dfb4aa6120327f00b367a42c785af7de9ce24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 3 Sep 2022 16:21:26 +0200 Subject: [PATCH] [instagram] add 'highlight_title' and 'date' metadata to highlight posts (#2879) --- gallery_dl/extractor/instagram.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gallery_dl/extractor/instagram.py b/gallery_dl/extractor/instagram.py index d56af8b6..8c98d2ea 100644 --- a/gallery_dl/extractor/instagram.py +++ b/gallery_dl/extractor/instagram.py @@ -264,6 +264,12 @@ class InstagramExtractor(Extractor): "post_id": reel_id, "post_shortcode": shortcode_from_id(reel_id), } + + if "title" in post: + data["highlight_title"] = post["title"] + if "created_at" in post: + data["date"] = text.parse_timestamp(post.get("created_at")) + else: data = { "post_id" : post["pk"],