summaryrefslogtreecommitdiff
path: root/searx/engines/swisscows.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/swisscows.py')
-rw-r--r--searx/engines/swisscows.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/engines/swisscows.py b/searx/engines/swisscows.py
index d8a454039..dd398857f 100644
--- a/searx/engines/swisscows.py
+++ b/searx/engines/swisscows.py
@@ -120,6 +120,8 @@ def _fetch_supported_languages(resp):
options = dom.xpath('//div[@id="regions-popup"]//ul/li/a')
for option in options:
code = option.xpath('./@data-val')[0]
+ if code.startswith('nb-'):
+ code = code.replace('nb', 'no', 1)
supported_languages.append(code)
return supported_languages