[instagram] add 'highlight_title' and 'date' metadata

to highlight posts (#2879)
pull/2910/head
Mike Fährmann 2 years ago
parent 7f764ebee6
commit 444dfb4aa6
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -264,6 +264,12 @@ class InstagramExtractor(Extractor):
"post_id": reel_id, "post_id": reel_id,
"post_shortcode": shortcode_from_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: else:
data = { data = {
"post_id" : post["pk"], "post_id" : post["pk"],

Loading…
Cancel
Save