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

[Enhancement]: Paginate APIs for low resource devices #1504

Closed
gordallott opened this issue Feb 13, 2023 · 1 comment
Closed

[Enhancement]: Paginate APIs for low resource devices #1504

gordallott opened this issue Feb 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@gordallott
Copy link

Describe the feature/enhancement

in memen45/SubMusic/issues/67 We've been discussing adding audiobookshelf backend support to a Garmin wearable app used to sync & play audiofiles from hosted servers (plex, nextcloud, ampache...) so you can listen to things directly from the watch and keep things in sync

One of the bigger points of contention with adding support is the lack of pagination in audiobookshelf APIs, hitting an api like /api/items/$libraryID?expanded=1&include=authors,downloads,rssfeed can easily hit a few MB in json for podcasts especially. For reference I have a podcast with 500~ items that produces about 2MB of json

adding pagination to the Libraries/Playlists/Collections apis would go a long way towards both making it possible to interact with the server on low resource devices, as well as making the general user experience better, especially for podcast users

@advplyr
Copy link
Owner

advplyr commented Feb 13, 2023

Library items, playlists, collections, and series all have pagination.

See the docs https://api.audiobookshelf.org/#get-a-library-39-s-items

They are in the Library section because they are library dependent for clients. You can also pass minified=1 to get a smaller object for library items.

Let me know if there is anything else.

@advplyr advplyr closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants