1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-19 19:00:10 +01:00

[enh] soundcloud playlists

This commit is contained in:
asciimoo 2013-10-20 00:52:32 +02:00
parent 565db911a4
commit 7b6e5b5d14

View File

@ -16,7 +16,7 @@ def response(resp):
results = [] results = []
search_res = loads(resp.text) search_res = loads(resp.text)
for result in search_res.get('collection', []): for result in search_res.get('collection', []):
if result['kind'] == 'track': if result['kind'] in ('track', 'playlist'):
title = result['title'] title = result['title']
content = result['description'] content = result['description']
results.append({'url': result['permalink_url'], 'title': title, 'content': content}) results.append({'url': result['permalink_url'], 'title': title, 'content': content})