diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-01-24 09:58:57 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2021-02-01 17:10:37 +0100 |
| commit | ca93a018444041f64c193b4e623b9d6d1150b042 (patch) | |
| tree | a5c2625b2b929c9144a7c78f9cd06fe54ef9400e /searx/engines/peertube.py | |
| parent | 99244440e42b970252b63fb1194ee1503afda704 (diff) | |
[mod] dynamically set language_support variable
The language_support variable is set to True by default,
and set to False in only 5 engines.
Except the documentation and the /config URL, this variable is not used.
This commit remove the variable definition in the engines, and
set value according to supported_languages length: False when the length is 0,
True otherwise.
Close #2485
Diffstat (limited to 'searx/engines/peertube.py')
| -rw-r--r-- | searx/engines/peertube.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/searx/engines/peertube.py b/searx/engines/peertube.py index 549141079..b5b17c6f2 100644 --- a/searx/engines/peertube.py +++ b/searx/engines/peertube.py @@ -21,7 +21,6 @@ about = { # engine dependent config categories = ["videos"] paging = True -language_support = True base_url = "https://peer.tube/" supported_languages_url = base_url + "api/v1/videos/languages" |