SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
Merge branch 'Detect-favicons' of https://github.com/Cqoicebordel/searx into Cqoicebordel-Detect-favicons
Adam Tauberada01cb367fb
diff --cc searx/webapp.pyindex 915fb3564,ca58d8ea3..8d1676808--- a/searx/webapp.py+++ b/searx/webapp.py@@@ -65,9 -68,12 +65,12 @@@ app.secret_key = settings['server']['sebabel = Babel(app)- #TODO configurable via settings.yml- favicons = ['wikipedia', 'youtube', 'vimeo', 'dailymotion', 'soundcloud',- 'twitter', 'stackoverflow', 'github', 'deviantart', 'kickass']+ global_favicons = []-for indice,theme in enumerate(themes):++for indice, theme in enumerate(themes):+ global_favicons.append([])+ theme_img_path = searx_dir+"/static/"+theme+"/img/"+ for (dirpath, dirnames, filenames) in os.walk(theme_img_path):+ global_favicons[indice].extend(filenames)cookie_max_age = 60 * 60 * 24 * 365 * 23 # 23 years@@@ -232,11 -290,7 +235,7 @@@ def index()result['pretty_url'] = u'{0}[...]{1}'.format(*url_parts)else:result['pretty_url'] = result['url']-+- for engine in result['engines']:- if engine in favicons:- result['favicon'] = engine-# TODO, check if timezone is calculated rightif 'publishedDate' in result:result['pubdate'] = result['publishedDate'].strftime('%Y-%m-%d %H:%M:%S%z')