[instagram] add 'highlight_title' and 'date' metadata
to highlight posts (#2879)
This commit is contained in:
@@ -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"],
|
||||||
|
|||||||
Reference in New Issue
Block a user