forked from zaclys/searxng
		
	fix startpage: update XPath in _fetch_supported_languages
This commit is contained in:
		
							parent
							
								
									6ccd557650
								
							
						
					
					
						commit
						378b29be2f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -245,7 +245,7 @@ def _fetch_supported_languages(resp): | |||
| 
 | ||||
|     dom = html.fromstring(resp.text) | ||||
|     sp_lang_names = [] | ||||
|     for option in dom.xpath('//form[@id="settings-form"]//select[@name="language"]/option'): | ||||
|     for option in dom.xpath('//form[@name="settings"]//select[@name="language"]/option'): | ||||
|         sp_lang_names.append((option.get('value'), extract_text(option).lower())) | ||||
| 
 | ||||
|     supported_languages = {} | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Alexandre Flament
						Alexandre Flament