summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-12-07 20:25:17 +0100
committerGitHub <noreply@github.com>2020-12-07 20:25:17 +0100
commit13d3004703013d44fe39ab73f77c3dbe2161b6f7 (patch)
tree248b66b49c4e7ac712f9ba77423db43bafa0fc44
parent62073c0e1dcb41a9b6f01fa5321baaca291adbaa (diff)
parentdeb1bde20d4839141053a9d5cae4cdd3339a028e (diff)
downloadsearxng-13d3004703013d44fe39ab73f77c3dbe2161b6f7.tar.gz
searxng-13d3004703013d44fe39ab73f77c3dbe2161b6f7.zip
Merge pull request #2365 from dalf/fix-soundcloud
[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)