-
Notifications
You must be signed in to change notification settings - Fork 962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
total
parameter should refer to all types in search_markets
method
#534
Comments
Hello, I'm new to this project and would like to contribute! Can I be assigned to this issue @stephanebruckert? |
Hi @stephanebruckert, I'm currently looking into this issue and just want to clarify the desired behavior. The For example, if the user enters this query:
The code will search the first market for 10 artist items followed by 10 track items, bringing the count to 20. At this point, we want to truncate the limit to 5 prior to searching the next market. But should we still get 5 items for both artists and tracks, resulting in a count of 30 items? Or do we just want to get the 5 artists items and immediately return the 25 results at this point (which would result in the second market having no Thanks! |
…s, add unit tests, fixes spotipy-dev#534
Currently we can stop searching all markets when an
total
results are found. However this only applies to the first search type when multiple types are given:https://github.com/plamere/spotipy/blob/f7fb8757e958ee055cf39764ff7070f9d67b7229/spotipy/client.py#L541
The text was updated successfully, but these errors were encountered: