[PR #4698] [CLOSED] Add autoplay for next book in series after queue ends #4316

Closed
opened 2026-04-25 00:19:15 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/4698
Author: @Vito0912
Created: 9/25/2025
Status: Closed

Base: masterHead: feat/automaticallyPlaySeries


📝 Commits (1)

  • 0610cca Add autoplay for next book in series after queue ends

📊 Changes

3 files changed (+90 additions, -19 deletions)

View changed files

📝 client/components/app/MediaPlayerContainer.vue (+65 -19)
📝 server/controllers/SeriesController.js (+24 -0)
📝 server/routers/ApiRouter.js (+1 -0)

📄 Description

Brief summary

This PR adds automatic playing a series if the queue ends. It intentionally does NOT add all the items to the queue, a. to save bandwith and b. to give users the possibility to add items to the queue.

Which issue is fixed?

Fixes https://github.com/advplyr/audiobookshelf/issues/4007

In-depth Description

This adds a new route to get the next book in a series. This could be done in the frontend, but I decided not to because a series can have hundreds of books and fetching the full series at once would not be good. This endpoint can also be used by other apps to display the following books and is a small addition. I hope this makes sense.

The next book in a series only plays if the queue is empty and there is a next book available. If auto play in the queue is disabled, it will not play. I am not sure if that is the best way (since people might want to use the queue and not automatically listen to series books, but I think adding a new control just for this is unnecessary).

How have you tested this?

Own server

Screenshots

None


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/4698 **Author:** [@Vito0912](https://github.com/Vito0912) **Created:** 9/25/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feat/automaticallyPlaySeries` --- ### 📝 Commits (1) - [`0610cca`](https://github.com/advplyr/audiobookshelf/commit/0610cca7b1c0b4b2cf97c898b2f776f8bf978dea) Add autoplay for next book in series after queue ends ### 📊 Changes **3 files changed** (+90 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `client/components/app/MediaPlayerContainer.vue` (+65 -19) 📝 `server/controllers/SeriesController.js` (+24 -0) 📝 `server/routers/ApiRouter.js` (+1 -0) </details> ### 📄 Description <!-- For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details. If you do not follow this template, the PR may be closed without review. Please ensure all checks pass. If you are a new contributor, the workflows will need to be manually approved before they run. --> ## Brief summary This PR adds automatic playing a series if the queue ends. It intentionally does NOT add all the items to the queue, a. to save bandwith and b. to give users the possibility to add items to the queue. ## Which issue is fixed? Fixes https://github.com/advplyr/audiobookshelf/issues/4007 ## In-depth Description This adds a new route to get the next book in a series. This could be done in the frontend, but I decided not to because a series can have hundreds of books and fetching the full series at once would not be good. This endpoint can also be used by other apps to display the following books and is a small addition. I hope this makes sense. The next book in a series only plays if the queue is empty and there is a next book available. If auto play in the queue is disabled, it will not play. I am not sure if that is the best way (since people might want to use the queue and not automatically listen to series books, but I think adding a new control just for this is unnecessary). ## How have you tested this? Own server ## Screenshots None --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:19:15 +02:00
adam closed this issue 2026-04-25 00:19:15 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4316