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

to highlight posts (#2879)
master
Mike Fährmann 2022-09-03 16:21:26 +02:00
parent 7f764ebee6
commit 444dfb4aa6
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
1 changed files with 6 additions and 0 deletions

View File

@ -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"],