[instagram] extract 'subscription' metadata (#8349)
for "exclusive" content / posts requiring a subscription
This commit is contained in:
@@ -293,6 +293,8 @@ class InstagramExtractor(Extractor):
|
|||||||
self._extract_tagged_users(item, media)
|
self._extract_tagged_users(item, media)
|
||||||
files.append(media)
|
files.append(media)
|
||||||
|
|
||||||
|
if "subscription_media_visibility" in post:
|
||||||
|
data["subscription"] = post["subscription_media_visibility"]
|
||||||
if "type" not in data:
|
if "type" not in data:
|
||||||
if len(files) == 1 and files[0]["video_url"]:
|
if len(files) == 1 and files[0]["video_url"]:
|
||||||
data["type"] = "reel"
|
data["type"] = "reel"
|
||||||
|
|||||||
Reference in New Issue
Block a user