mirror of
https://github.com/searxng/searxng.git
synced 2025-07-15 01:09:21 +02:00
[ehn] add favicons for vimeo, soundcloud, twitter and youtube
This commit is contained in:
parent
fdb6fac214
commit
a8ec7fe6a4
8 changed files with 20 additions and 6 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue