From deb1bde20d4839141053a9d5cae4cdd3339a028e Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Mon, 7 Dec 2020 17:45:36 +0100 Subject: [PATCH] [fix] soundclound: accept result without content --- searx/engines/soundcloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)