mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 17:22:31 +01:00
[soundcloud:search] Fix pagination
This commit is contained in:
parent
e16fefd869
commit
8863c8f09e
@ -893,5 +893,6 @@ def _get_collection(self, endpoint, collection_id, **query):
|
|||||||
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…
Reference in New Issue
Block a user