Refactor adult content filtering logic to enforce more keywords on stream request

This commit is contained in:
mhdzumair
2025-01-17 06:51:09 +05:30
parent 1cfbb89d9d
commit 32d675b173
7 changed files with 20 additions and 29 deletions
@@ -44,13 +44,6 @@ class TorrentDownloadAndParsePipeline:
response.body, item.get("parsed_data")
)
if settings.adult_content_filter_in_torrent_title and torrent_metadata.get(
"adult"
):
raise DropItem(
f"Torrent name contains 18+ keywords: {torrent_metadata['torrent_name']}"
)
if not torrent_metadata:
return item