You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I might be missing something obvious, and this may be a question better suited for LavaPlayer, but is there a way to increase the number of results I get from a search? If we take this code as an example:
where 'algorithm' allows the user to pass various search types, i.e. ytsearch, ytmsearch, scsearch, etc. and 'query' is what they search for, i.e. 'rap music'.
Is it possible to configure how many results are returned, or even offer a paginated response so something like response page 2....N become available? As-is users always get the same tracks in the same order when they would like to continue getting new results after they've gone through the initial set of tracks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I might be missing something obvious, and this may be a question better suited for LavaPlayer, but is there a way to increase the number of results I get from a search? If we take this code as an example:
public Future<Void> searchMusic(String algorithm, String query) { String search = String.format("%s: %s", algorithm, query); return loadItem(search, scheduler); }
where 'algorithm' allows the user to pass various search types, i.e. ytsearch, ytmsearch, scsearch, etc. and 'query' is what they search for, i.e. 'rap music'.
Is it possible to configure how many results are returned, or even offer a paginated response so something like response page 2....N become available? As-is users always get the same tracks in the same order when they would like to continue getting new results after they've gone through the initial set of tracks.
Beta Was this translation helpful? Give feedback.
All reactions