forked from zaclys/searxng
update engines_languages.json and languages.py
Also, fix fetch_languages.py so it can run on python3.
This commit is contained in:
parent
a524dbb823
commit
44085e31d0
6 changed files with 22 additions and 24 deletions
|
|
@ -118,7 +118,7 @@ def _fetch_supported_languages(resp):
|
|||
dom = fromstring(resp.text)
|
||||
options = dom.xpath('//div[@id="regions-popup"]//ul/li/a')
|
||||
for option in options:
|
||||
code = option.xpath('./@data-val')[0]
|
||||
code = option.xpath('./@data-search-language')[0]
|
||||
if code.startswith('nb-'):
|
||||
code = code.replace('nb', 'no', 1)
|
||||
supported_languages.append(code)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue