This commit is contained in:
+9
-1
@@ -45,16 +45,24 @@ def map_source_to_description(source: str) -> str:
|
||||
elif "omdb:" in source_lower:
|
||||
return "OMDb Release"
|
||||
|
||||
# Sonarr sources
|
||||
elif "sonarr:" in source_lower:
|
||||
return "Sonarr API"
|
||||
|
||||
# Manual and other sources
|
||||
elif "manual" in source_lower:
|
||||
return "Manual Entry"
|
||||
elif "digital_release" in source_lower:
|
||||
return "Digital Release"
|
||||
elif "nfo_file_existing" in source_lower:
|
||||
return "NFO File (Legacy)"
|
||||
elif "nfo:" in source_lower:
|
||||
return "NFO File"
|
||||
elif "webhook:" in source_lower:
|
||||
return "Webhook/API"
|
||||
|
||||
elif "database" in source_lower:
|
||||
return "Database"
|
||||
|
||||
# Fallback for unknown patterns
|
||||
return source.title()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user