on master help sign in
Merge pull request #1866 from return42/fix-news

bugfix: google-news and bing-news has changed the language parameter

commita5d3585a0c47b736b0845fcf6786f0f5b57d4215 authorMarkus Heiser <markus.heiser@darmarIT.de> dateWed 4 Mar 2020, 11:00 (7 years ago) parent6a3ef55ad7a6e6
10 files changed+28396−27532
Makefile+13 requirements-dev.txt+1 searx/data/engines_languages.json+28332−27487 searx/engines/bing.py+14−9 searx/engines/bing_images.py+2−19 searx/engines/bing_news.py+3−1 searx/engines/bing_videos.py+5−1 searx/engines/google_news.py+1−1 searx/languages.py+12−4 utils/fetch_languages.py+13−10
Makefile+13
@@ -27,6 +27,7 @@ help:
2727 @echo ' uninstall - uninstall (./local)'
2828 @echo ' gh-pages - build docs & deploy on gh-pages branch'
2929 @echo ' clean - drop builds and environments'
30+ @echo ' project - re-build generic files of the searx project'
3031 @echo ''
3132 @$(MAKE) -s -f utils/makefile.include make-help
3233 @echo ''
@@ -67,6 +68,18 @@ docs-live: pyenvinstall sphinx-live
6768$(GH_PAGES)::
6869 @echo "doc available at --> $(DOCS_URL)"
6970
71+# update project files
72+# --------------------
73+
74+PHONY += project engines-languages
75+
76+project: searx/data/engines_languages.json
77+
78+searx/data/engines_languages.json: pyenvinstall
79+ $(PY_ENV_ACT); python utils/fetch_languages.py
80+ mv engines_languages.json searx/data/engines_languages.json
81+ mv languages.py searx/languages.py
82+
7083# test
7184# ----
7285
requirements-dev.txt+1
@@ -5,6 +5,7 @@ mock==2.0.0
55nose2[coverage_plugin]
66cov-core==1.15.0
77pep8==1.7.0
8+pylint
89plone.testing==5.0.0
910splinter==0.11.0
1011transifex-client==0.12.2
searx/data/engines_languages.json+28332−27487

This diff is too big to show here.

searx/engines/bing.py+14−9

This diff is too big to show here.

searx/engines/bing_images.py+2−19

This diff is too big to show here.

searx/engines/bing_news.py+3−1

This diff is too big to show here.

searx/engines/bing_videos.py+5−1

This diff is too big to show here.

searx/engines/google_news.py+1−1

This diff is too big to show here.

searx/languages.py+12−4

This diff is too big to show here.

utils/fetch_languages.py+13−10

This diff is too big to show here.