This commit is contained in:
Hossein 2025-08-07 03:02:13 +03:30
parent 48b28e8ff9
commit 65ccffd6e2

View File

@ -11,15 +11,14 @@ class ScrapeRequest(BaseModel):
class MediaItem(BaseModel):
media_type: str # image | video
media_url: str # original Instagram URL
local_media: str # full S3/MinIO URL
media_type: str # "image" or "video"
url: str # ✅ only S3/MinIO URL (renamed from local_media)
class ScrapedPost(BaseModel):
ig_post_id: str
media_type: str # image | video | carousel
media_type: str # "image", "video", or "carousel"
caption: Optional[str]
thumbnail_url: Optional[str]
local_media: List[MediaItem]
created_at: datetime
local_media: List[MediaItem] # ✅ now only contains {"media_type", "url"}
created_at: datetime