We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can someone help my identify what's wrong with this? I'm trying to page through all the search results, but the loop never breaks:
ctx := context.Background() results, err := client.Search(ctx, "lofi", spotify.SearchTypeTrack|spotify.SearchTypeAlbum|spotify.SearchTypeArtist, spotify.Limit(50)) if err != nil { log.Fatal(err) } for { err = client.NextTrackResults(ctx, results) if err == spotify.ErrNoMorePages { break } if err != nil { log.Fatal(err) } }
This loop runs infinitely where SearchResult.Tracks.Next stays locked at https://api.spotify.com/v1/search?query=lofi&type=track&offset=950&limit=50.
SearchResult.Tracks.Next
https://api.spotify.com/v1/search?query=lofi&type=track&offset=950&limit=50
The text was updated successfully, but these errors were encountered:
Am I doing something wrong here?
Sorry, something went wrong.
No branches or pull requests
Can someone help my identify what's wrong with this? I'm trying to page through all the search results, but the loop never breaks:
This loop runs infinitely where
SearchResult.Tracks.Next
stays locked athttps://api.spotify.com/v1/search?query=lofi&type=track&offset=950&limit=50
.The text was updated successfully, but these errors were encountered: