mirror of
https://github.com/Viren070/MediaFusion.git
synced 2025-12-01 23:21:11 +01:00
Refactor adult content filtering logic to enforce more keywords on stream request
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user