mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix] lingva: redirect and parsing error
This commit is contained in:
		
							parent
							
								
									bffc4905ce
								
							
						
					
					
						commit
						11c0651ef4
					
				
					 2 changed files with 2 additions and 4 deletions
				
			
		|  | @ -16,7 +16,7 @@ about = { | |||
| engine_type = 'online_dictionary' | ||||
| categories = ['general'] | ||||
| 
 | ||||
| url = "https://lingva.thedaviddelta.com/" | ||||
| url = "https://lingva.thedaviddelta.com" | ||||
| search_url = "{url}/api/v1/{from_lang}/{to_lang}/{query}" | ||||
| 
 | ||||
| 
 | ||||
|  | @ -48,8 +48,6 @@ def response(resp): | |||
|     infobox = "" | ||||
| 
 | ||||
|     for translation in info["extraTranslations"]: | ||||
|         infobox += f"<b>{translation['type']}</b>" | ||||
| 
 | ||||
|         for word in translation["list"]: | ||||
|             infobox += f"<dl><dt>{word['word']}</dt>" | ||||
| 
 | ||||
|  |  | |||
|  | @ -1044,7 +1044,7 @@ engines: | |||
|     engine: lingva | ||||
|     shortcut: lv | ||||
|     # set lingva instance in url, by default it will use the official instance | ||||
|     # url: https://lingva.thedaviddelta.com/ | ||||
|     # url: https://lingva.thedaviddelta.com | ||||
| 
 | ||||
|   - name: lobste.rs | ||||
|     engine: xpath | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bnyro
						Bnyro