mirror of
https://github.com/Viren070/MediaFusion.git
synced 2025-12-01 23:21:11 +01:00
Fix null check in validation and handle exceptions in scraper
This commit is contained in:
+3
-1
@@ -96,6 +96,8 @@ async def update_rpdb_posters(
|
||||
if updated_poster:
|
||||
meta.poster = updated_poster
|
||||
|
||||
await asyncio.gather(*(update_poster(meta) for meta in metas.metas))
|
||||
await asyncio.gather(
|
||||
*(update_poster(meta) for meta in metas.metas), return_exceptions=True
|
||||
)
|
||||
|
||||
return metas
|
||||
|
||||
@@ -245,7 +245,7 @@ def validate_parent_guide_nudity(metadata, user_data: schemas.UserData) -> bool:
|
||||
Returns False if the content should be filtered out based on user preferences.
|
||||
"""
|
||||
# Strict policy for adult genres.
|
||||
if "Adult" in metadata.genres:
|
||||
if metadata.genres and "Adult" in metadata.genres:
|
||||
return False
|
||||
|
||||
# Skip validation if filters are disabled
|
||||
|
||||
Reference in New Issue
Block a user