From 4231a5770bced12497cbd0a3000d12c8d3940295 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 24 Jul 2022 20:56:03 +0200 Subject: [PATCH] [fix] sjp engine - convert enginename to a latin1 compliance name The engine name is not only a *name* its also a identifier that is used in logs, HTTP headers and more. Unicode characters in the name of an engine could cause various issues. Closes: https://github.com/searxng/searxng/issues/1544 Signed-off-by: Markus Heiser --- searx/engines/sjp.py | 4 +++- searx/settings.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/searx/engines/sjp.py b/searx/engines/sjp.py index 8342a2819..6daa46e78 100644 --- a/searx/engines/sjp.py +++ b/searx/engines/sjp.py @@ -1,6 +1,8 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -"""Słownik Języka Polskiego (general) +# lint: pylint +"""Słownik Języka Polskiego +Dictionary of the polish language from PWN (sjp.pwn) """ from lxml.html import fromstring diff --git a/searx/settings.yml b/searx/settings.yml index 21f0f20b3..949550831 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1732,7 +1732,7 @@ engines: results: HTML language: de - - name: słownik języka polskiego + - name: sjp.pwn engine: sjp shortcut: sjp base_url: https://sjp.pwn.pl/