Skip to content
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

Support for browse pagination? #78

Closed
scrogson opened this issue Jan 9, 2023 · 2 comments
Closed

Support for browse pagination? #78

scrogson opened this issue Jan 9, 2023 · 2 comments

Comments

@scrogson
Copy link

scrogson commented Jan 9, 2023

I'm attempting to use this library to page through the browse API, but I don't see anything which supports this built in. Am I missing something?

https://beta.musicbrainz.org/doc/MusicBrainz_API#Browse

Paging
Browse requests are the only requests which support paging: any browse request supports an 'offset=' argument to get more results. Browse requests also support 'limit=': the default limit is 25, and you can increase that up to 100.

Special note for releases: To ensure requests can complete without timing out, we limit the number of releases returned such that the entire list contains no more than 500 tracks. (However, at least one full release is always returned, even if it has more than 500 tracks; we don't return "partial" releases.) This means that you may not get 100 releases per page if you set limit=100; in fact the number will vary per page depending on the size of the releases. In order to page through the results properly, increment offset by the number of releases you get from each response, rather than the (larger, fixed) limit size.

@oknozor
Copy link
Owner

oknozor commented Jan 9, 2023

Hello @scrogson, pagination is not implemented. I don't have time to work on this currently but PR's are welcome

@scrogson
Copy link
Author

Thanks for the response. I've been evaluating MusicBrainz for a project but I think I've decided to use something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants