[soundcloud:search] Fix pagination

pull/1686/head
pukkandan 3 years ago
parent e16fefd869
commit 8863c8f09e
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -893,5 +893,6 @@ class SoundcloudSearchIE(SearchInfoExtractor, SoundcloudIE):
break break
def _get_n_results(self, query, n): def _get_n_results(self, query, n):
tracks = self._get_collection('search/tracks', query, limit=n, q=query) return self.playlist_result(itertools.islice(
return self.playlist_result(tracks, query, query) self._get_collection('search/tracks', query, limit=n, q=query),
0, None if n == float('inf') else n), query, query)

Loading…
Cancel
Save