Commit Graph

2592 Commits

Author SHA1 Message Date
Nicolas Gelot 373a66be30 Fix locale and search language
Locale and search language was always defined with english value.

This patch inits the locale on `pre_request` in order to define the
default value of locale and language preferences.

Plus the `best_match` function provided by flask babel library did not
work as expected. So the function `match_language` provided
by searx is used to detect that the language from Accepted-Language
header can be used in searx project.
2019-06-17 23:19:15 +02:00
Nicolas Gelot a818d3241d Remove get local from request.args
args parameters are merged in form in pre_request, so
this patch removes that useless operation.
2019-06-17 23:13:04 +02:00
Noémi Ványi 8189b0d192
Merge pull request #1588 from rachmadaniHaryono/feature/fix-nose-coverage
install coverage_plugin of nose2 instead of coverage-plugin
2019-06-03 20:30:05 +02:00
rachmadani haryono 43568a76dc
Merge branch 'master' into feature/fix-nose-coverage 2019-05-29 19:17:13 +08:00
Emilien Devos cbd1ebdce8 [fix] Force Google old UI (#1597) 2019-05-29 10:05:57 +09:00
rachmadani haryono 914141292f
Merge branch 'master' into feature/fix-nose-coverage 2019-05-28 19:16:46 +08:00
Frank de Lange 4b7332286a Use string formatter to create source and img_format labels (#1566)
google_images :  use JSON embedded in HTML (engine expected pure JSON)
2019-05-28 12:33:31 +09:00
Alexandre Flament a255651671
Merge pull request #1562 from asciimoo/settings
Remove some engines : subtitleseeker, seedpeer, swisscows
2019-05-28 11:14:15 +09:00
Dalf ffe0972f91 Remove some engines : subtitleseeker, seedpeer, swisscows
http://www.subtitleseeker.com and http://www.seedpeer.eu don't exist anymore.
https://swisscows.ch/ has change : the engine needs to be updated
2019-05-28 04:06:35 +02:00
rachmadaniHaryono 22a35f0362 fix: dev: nose package 2019-05-28 06:52:39 +08:00
Alexandre Flament 6c95ebcff5
Merge pull request #1595 from Venca24/fix_seznam
[fix] seznam engine
2019-05-28 07:27:40 +09:00
Alexandre Flament 9318551890
Merge branch 'master' into fix_seznam 2019-05-28 07:23:06 +09:00
Adam Tauber b6ae5c340d
Merge pull request #1605 from dalf/requirements
requirements.txt : update dependencies
2019-05-28 00:16:14 +02:00
Dalf 1418361cbc requirements.txt : update dependencies 2019-05-26 04:31:58 +02:00
Venca24 c66a019478 [fix] seznam engine 2019-05-21 14:27:30 +02:00
Alexandre Flament a84caa22cf
Merge pull request #1558 from brunob/patch-1
simple theme : use instance_name for page title
2019-04-19 10:04:53 +02:00
Alexandre Flament 9012ad498c
Merge branch 'master' into patch-1 2019-04-19 09:59:04 +02:00
Alexandre Flament 629b36d442
Merge pull request #1563 from Nachtalb/ne/fix-google-image-search
Fix google image search engine
2019-04-14 14:11:05 +02:00
Alexandre Flament df2b9a76f7
Merge branch 'master' into ne/fix-google-image-search 2019-04-14 13:55:00 +02:00
Nick Espig 1c6ab79b9f
Fix google image search
- Because there is not full image url in the dom, we replace "image_url" with the same url as the "url" (url of source).
  See example HTML https://gist.github.com/Nachtalb/2dea8a4d2c723c49226ad9645838121f
- Remove unused import
- Fix google image search title
- Keep google image safe value up to date
2019-04-14 12:03:25 +02:00
Alexandre Flament 30cdec37aa
Merge pull request #1565 from MarcAbonce/fix_duck_images
[fix] DuckDuckGo Images requests
2019-04-14 11:13:19 +02:00
Marc Abonce Seguin 3e1c2153f7 [fix] duckduckgo images requests 2019-04-13 00:38:37 -05:00
b_b 4ca7e68841
use instance_name for page title
related to #1025
2019-04-09 21:15:02 +02:00
Alexandre Flament 34d85c8c3c
Merge pull request #1533 from theel0ja/patch-1
Use HTTPS for crossref
2019-04-09 03:38:42 +02:00
Alexandre Flament 3e9ce2638a
Merge branch 'master' into patch-1 2019-04-09 03:32:39 +02:00
Alexandre Flament ca09d91023
Merge pull request #1544 from MarcAbonce/youtube_fix
[fix] get YouTube results
2019-04-09 03:26:27 +02:00
Alexandre Flament e868650df7
Merge branch 'master' into youtube_fix 2019-04-09 03:21:37 +02:00
Alexandre Flament 3ee804ec8c
Merge pull request #1545 from MarcAbonce/fix_duplicated_query
[fix] Stop engine from sending duplicated requests
2019-04-09 03:06:17 +02:00
Elias Ojala cef77f0d51
Merge branch 'master' into patch-1 2019-03-29 14:41:12 +00:00
Marc Abonce Seguin aaa0524cec [fix] stop engine from sending duplicated requests 2019-03-28 19:25:20 -06:00
Marc Abonce Seguin f2d49a6971 [fix] get youtube results from js object
Results are not appearing in the html document anymore,
instead they are found inside an object embedded in a script.
2019-03-26 21:09:15 -06:00
Dalf a80a2d05d1 Merge branch 'kvch-update-packages' 2019-03-24 07:41:42 +01:00
Elias Ojala 8039a577a8
Use HTTPS for crossref 2019-03-12 12:30:47 +00:00
Noémi Ványi 252ba92fdd add more updates 2019-02-23 18:53:32 +01:00
Noémi Ványi 30bdc8704c require jinja to have unique function 2019-02-23 18:52:36 +01:00
Noémi Ványi 2478c5395d update pyyaml 2019-02-23 18:52:36 +01:00
Noémi Ványi b9e42e69be
Merge pull request #1507 from Venca24/devel_google_scholar
[fix] google scholar suggestions
2019-02-22 21:10:26 +01:00
Noémi Ványi 6cadbf9269
Merge branch 'master' into devel_google_scholar 2019-02-22 21:05:07 +01:00
Noémi Ványi d4a24fcaa5
Merge pull request #1514 from jfowl/engine-apkmirror
[Engine] adds apkmirror search engine
2019-02-22 20:56:01 +01:00
Jonas Zohren f7bdd827c4 [enh] adds apkmirror search engine 2019-02-13 00:37:29 +01:00
Venca24 05a73019b1 [fix] google scholar suggestions 2019-02-04 16:31:17 +01:00
Noémi Ványi 5fa3c1126b
Merge pull request #1497 from kvch/fix-engine-suspend-time
Add accidentally removed import to search.py
2019-01-29 11:09:50 +01:00
Noémi Ványi 83342a2878
Merge branch 'master' into fix-engine-suspend-time 2019-01-29 11:03:35 +01:00
Noémi Ványi 0ac117770d
Merge pull request #1501 from bourrel/remove_asksteem
Remove asksteem
2019-01-29 11:02:49 +01:00
Léo Bourrel bf4a38ad66 Remove asksteem 2019-01-28 11:02:43 +01:00
Noémi Ványi c4f165477e
Merge pull request #1488 from Venca24/devel_image_proxy
[FIX] image_proxify
2019-01-25 20:54:47 +01:00
Noémi Ványi 36790168a1 add again accidentally removed import to search.py 2019-01-25 20:54:23 +01:00
Noémi Ványi fdf3994364
Merge branch 'master' into devel_image_proxy 2019-01-25 20:48:55 +01:00
Noémi Ványi deaaf0651a
Merge pull request #1485 from pelag0s/outgoing-proxy-config
docker: allow configuring http proxy via env variables
2019-01-20 14:56:49 +01:00
Noémi Ványi e9b53a12b0
Merge branch 'master' into outgoing-proxy-config 2019-01-20 14:51:35 +01:00