summaryrefslogtreecommitdiff
path: root/searx/engines/privacywall.py
diff options
context:
space:
mode:
authorOm Alve <om@turboml.com>2026-08-23 18:26:13 +0530
committerBnyro <bnyro@tutanota.com>2026-09-02 16:30:00 +0200
commitb4f616fed70b0598a1817fb828c0cce29d0451be (patch)
treeb0133d0ea0d822b1e907983eb5ac8102ab51ff79 /searx/engines/privacywall.py
parentfd29de6c55e81524172744d9f36917c271dd01b9 (diff)
[mod] engines: migrate to setup() from init() for simple tasks
Diffstat (limited to 'searx/engines/privacywall.py')
-rw-r--r--searx/engines/privacywall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/privacywall.py b/searx/engines/privacywall.py
index ac492d71a..2dde35b2d 100644
--- a/searx/engines/privacywall.py
+++ b/searx/engines/privacywall.py
@@ -61,7 +61,7 @@ video_page_map = {
}
-def init(_):
+def setup(_: dict[str, t.Any]) -> bool | None:
if privacywall_category not in ("general", "images", "videos"):
raise ValueError("invalid category: %s" % privacywall_category)