diff options
| author | Apply55gx <Apply55gx@users.noreply.github.com> | 2017-10-25 10:44:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-25 10:44:28 +0200 |
| commit | d800e3fcfa44bc0be7262092815b2d2020a9d9f3 (patch) | |
| tree | 0bdc64b3e15592e2fdeeaa40f21cbcc8039b7949 /searx/engines/swisscows.py | |
| parent | 18a4e7035f72a3c31239ae0bd1ee67cc2ad354b8 (diff) | |
| parent | b34124fd8a6b020136ca9656acdb01afceabe96f (diff) | |
Merge pull request #1 from asciimoo/master
-
Diffstat (limited to 'searx/engines/swisscows.py')
| -rw-r--r-- | searx/engines/swisscows.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/swisscows.py b/searx/engines/swisscows.py index e9c13ca24..00346a7d0 100644 --- a/searx/engines/swisscows.py +++ b/searx/engines/swisscows.py @@ -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) |