- tracks = self._get_collection(
- '/search/tracks', collection_id='Query "{0}"'.format(query), limit=n, q=query)
-
- results = [self.url_result(track['uri']) for track in itertools.islice(tracks, n)]
-
- return self.playlist_result(results, playlist_title=query)
+ tracks = self._get_collection('/search/tracks', query, limit=n, q=query)
+ return self.playlist_result(tracks, playlist_title=query)