2
0
mirror of https://github.com/searx/searx synced 2025-08-31 06:26:28 +00:00

Merge pull request #2365 from dalf/fix-soundcloud

[fix] soundclound: accept result without content
This commit is contained in:
Alexandre Flament
2020-12-07 20:25:17 +01:00
committed by GitHub

View File

@@ -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)