From 180f2bac636ab19e38ab305e86069657f9367dd7 Mon Sep 17 00:00:00 2001 From: purastonterias Date: Sun, 14 Jul 2024 21:16:00 -0400 Subject: [PATCH] fix: skip assets with same owner id as currently authed user --- .../managers/datascraper_manager/datascrapers/onlyfans.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ultima_scraper_collection/managers/datascraper_manager/datascrapers/onlyfans.py b/ultima_scraper_collection/managers/datascraper_manager/datascrapers/onlyfans.py index c0a0582..6dc16ac 100644 --- a/ultima_scraper_collection/managers/datascraper_manager/datascrapers/onlyfans.py +++ b/ultima_scraper_collection/managers/datascraper_manager/datascrapers/onlyfans.py @@ -69,6 +69,8 @@ async def media_scraper( await content_metadata.resolve_extractor(ApiExtractor(content_result)) for asset in content_metadata.medias: if asset.urls: + if asset.__content_metadata__.__soft__.get_author().id == authed.id: + continue reformat_manager = ReformatManager(authed, self.filesystem_manager) reformat_item = reformat_manager.prepare_reformat(asset) if reformat_item.api_type == "Messages":