[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 = []
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})