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