forked from Ponysearch/Ponysearch
[enh] soundcloud playlists
This commit is contained in:
parent
565db911a4
commit
7b6e5b5d14
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ def response(resp):
|
|||
results = []
|
||||
search_res = loads(resp.text)
|
||||
for result in search_res.get('collection', []):
|
||||
if result['kind'] == 'track':
|
||||
if result['kind'] in ('track', 'playlist'):
|
||||
title = result['title']
|
||||
content = result['description']
|
||||
results.append({'url': result['permalink_url'], 'title': title, 'content': content})
|
||||
|
|
Loading…
Reference in a new issue