route current events through bounded news search

This commit is contained in:
pewdiepie-archdaemon
2026-09-17 19:26:04 +00:00
parent e9a117df0d
commit 295578514e
5 changed files with 31 additions and 4 deletions
+4 -1
View File
@@ -149,7 +149,10 @@ def _safesearch_for(provider: str) -> Optional[str]:
# ── SearXNG ──
_NEWS_HINTS = ("news", "nyheter", "headlines", "breaking", "latest", "today", "idag")
_NEWS_HINTS = (
"news", "nyheter", "headlines", "breaking", "latest", "today", "idag",
"current events", "what's happening", "what is happening",
)
_NEWS_EVENT_HINT_RE = re.compile(
r"\b(?:deport(?:ation|ed|ing)?|arrest(?:ed|s)?|election(?:s)?|"
r"evacuat(?:e|ed|ion)|flood(?:ing|s|ed)?|sanction(?:s|ed)?)\b",