summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorpw3t <romain@berthor.fr>2014-01-15 22:25:10 +0100
committerpw3t <romain@berthor.fr>2014-01-16 22:03:43 +0100
commita8ec7fe6a4ad86a8eea4aa6be441984bc5ef7e5a (patch)
treea9777dd3b432245996b3a64c7aa0d123d3fde987 /searx/webapp.py
parentfdb6fac214c2fb5bdc6c27492bc45c6694483fb4 (diff)
[ehn] add favicons for vimeo, soundcloud, twitter and youtube
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 5fc981a89..b26e868f5 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -141,11 +141,9 @@ def index():
result['pretty_url'] = result['url']
for engine in result['engines']:
- if engine in ['wikipedia']:
- result['favicon'] = engine
- featured_results.append(result)
- results.remove(result)
- elif engine in ['ddg definitions']:
+ if engine in ['wikipedia', 'youtube', 'vimeo', 'soundcloud', 'twitter']:
+ result['favicon'] = engine
+ if engine in ['wikipedia', 'ddg definitions']:
featured_results.append(result)
results.remove(result)