diff options
| author | Om Alve <om@turboml.com> | 2026-08-23 18:26:13 +0530 |
|---|---|---|
| committer | Bnyro <bnyro@tutanota.com> | 2026-09-02 16:30:00 +0200 |
| commit | b4f616fed70b0598a1817fb828c0cce29d0451be (patch) | |
| tree | b0133d0ea0d822b1e907983eb5ac8102ab51ff79 /searx/engines/tonline.py | |
| parent | fd29de6c55e81524172744d9f36917c271dd01b9 (diff) | |
[mod] engines: migrate to setup() from init() for simple tasks
Diffstat (limited to 'searx/engines/tonline.py')
| -rw-r--r-- | searx/engines/tonline.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/tonline.py b/searx/engines/tonline.py index 328b42d69..04fb34250 100644 --- a/searx/engines/tonline.py +++ b/searx/engines/tonline.py @@ -44,7 +44,7 @@ tonline_channel_map = {"images": "flickr", "videos": "yt"} language = "de" -def init(_): +def setup(_: dict[str, t.Any]) -> bool | None: if tonline_categ not in ("web", "images", "videos", "news"): raise ValueError("invalid category: %s" % tonline_categ) |
