summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-12-07 17:45:36 +0100
committerAlexandre Flament <alex@al-f.net>2020-12-07 17:45:36 +0100
commitdeb1bde20d4839141053a9d5cae4cdd3339a028e (patch)
treee022411a4e47c8232b4e9d3e2ee2a0ee300aac20
parentcdceec1cbb2ca894572396e0a68c2d09b0769231 (diff)
downloadsearxng-deb1bde20d4839141053a9d5cae4cdd3339a028e.tar.gz
searxng-deb1bde20d4839141053a9d5cae4cdd3339a028e.zip
[fix] soundclound: accept result without content
-rw-r--r--searx/engines/soundcloud.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/soundcloud.py b/searx/engines/soundcloud.py
index b1e01759f..84ff21a88 100644
--- a/searx/engines/soundcloud.py
+++ b/searx/engines/soundcloud.py
@@ -91,7 +91,7 @@ def response(resp):
for result in search_res.get('collection', []):
if result['kind'] in ('track', 'playlist'):
title = result['title']
- content = result['description']
+ content = result['description'] or ''
publishedDate = parser.parse(result['last_modified'])
uri = quote_plus(result['uri'])
embedded = embedded_url.format(uri=uri)