Randomize the search result before returning result in mass.search
service
#2401
dsync89
started this conversation in
Feature requests and ideas
Replies: 1 comment
-
With integration 2024.11.0 there is a new service
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, the
mass.search
service always returns a fixed list of items for the same query (e.g., same name and media_type), no matter how many times the search is repeated. It would be beneficial to randomize the items internally before returning the results. At present, thelimit
field inmass.search
merely selects the top n_limit tracks. For instance, if the search yields 1000 items and the limit is set to 500, it will always return the same 500 tracks, leaving the remaining 500 tracks never chosen for the queue.As a temporary workaround, I perform a search for a large number of items, randomize the results, and then select only a subset. You can see the script I use here: GitHub Discussion #2400. However, this doesn't fully resolve the issue, as the service still returns the same number of tracks as defined by the limit field. At least it provides the illusion of fresh tracks by selecting a different subset each time.
Beta Was this translation helpful? Give feedback.
All reactions