Commit Graph

27 Commits (b8978b4bbf20eaf6dee1c3e63330a39eae76dfc8)

Author SHA1 Message Date
Léo Bourrel 7a474db61b Fix formatting 6 years ago
Léo Bourrel acaef6600e Update path to wikidata image 6 years ago
Marc Abonce Seguin b12857a70d [fix] make search requests on wikidata more accurate 6 years ago
Marc Abonce Seguin 772c048d01 refactor engine's search language handling
Add match_language function in utils to match any user given
language code with a list of engine's supported languages.

Also add language_aliases dict on each engine to translate
standard language codes into the custom codes used by the engine.
6 years ago
marc 4d1770398a remove 'all' option from search languages 7 years ago
Adam Tauber 52e615dede [enh] py3 compatibility 7 years ago
marc af35eee10b tests for _fetch_supported_languages in engines
and refactor method to make it testable without making requests
8 years ago
marc f62ce21f50 [mod] fetch supported languages for several engines
utils/fetch_languages.py gets languages supported by each engine and
generates engines_languages.json with each engine's supported language.
8 years ago
marc 149802c569 [enh] add supported_languages on engines and auto-generate languages.py 8 years ago
marc ad58b14be7 [fix] merge infoboxes based on weight
also minor changes in attributes and images from wikidata
8 years ago
marc a0a1284998 wikidata refactor and more attributes (see issue #560) 8 years ago
a01200356 93ef11adc0 [enh] multilingual wikidata
disambiguation and tags are in local language

TOFIX:
    needs to query the api every time to know each label's name
8 years ago
a01200356 8d335dbdae [enh] wikipedia infobox
creates simple multilingual infobox using wikipedia's api
8 years ago
Adam Tauber bd22e9a336 [fix] pep8 compatibilty 9 years ago
Adam Tauber 362c849797 [fix][mod] wikidata date handling refactor - fixes #387 9 years ago
dalf d07cfd9089 [enh] use one single http connection pool : improve response time. close #100 10 years ago
Adam Tauber d7ea44ab8d [fix] dates before 1900 10 years ago
Adam Tauber cc4e17b668 [fix] pep8 10 years ago
Cqoicebordel 7937218be6 Use human readable date
For DoB and DoD, wikipedia use a non standard ISO format, not easily readable.
Now the date is displayed in an human readable form, using the language setting as locale if available. If not, it uses the default locale.
10 years ago
dalf ffcec383b7 [fix] pep8 : duckduckgo_definitions and wikidata engines 10 years ago
Adam Tauber b0bb94fd37 [fix] wikidata: using only the first url 10 years ago
dalf cac1761a54 [enh] infoboxes : if the result doesn't contain anything except one link, use the normal result template 10 years ago
dalf 295b1699ce [mod] return only one result from the wikidata engine 10 years ago
Adam Tauber 727c7226d9 [fix] code cleanup 10 years ago
dalf 63a0328c8b [enh] wikidata engine : add links to musicbrainz 10 years ago
Dalf 0a71525ab6 [enh] add infoboxes and answers (clean up) 10 years ago
Dalf 6bfd566353 [enh] add infoboxes and answers 10 years ago