advplyr / audiobookshelf

Self-hosted audiobook and podcast server
https://audiobookshelf.org
GNU General Public License v3.0
5.87k stars 410 forks source link

[Enhancement]: RSS Audiobook list order management #3137

Open noahkiss opened 2 weeks ago

noahkiss commented 2 weeks ago

Type of Enhancement

Server Backend

Describe the Feature/Enhancement

Currently, Audiobook RSS feeds sort based on the date/time the book was added to ABS. ABS correctly sorts the books by order when creating the RSS feed, but most clients use pubDate to sort items. This means that users are unable to edit the order of their RSS feeds, as "Date Added" is not exposed as an editable field in the client.

Instead, collection/series order should be used by default, where the first item in a collection/series is assigned the oldest pubDate (so that new additions are added as the newest episodes). The easiest way to accomplish this would be to assign fake sequential dates to sort the RSS feeds.

The date should probably also leave room for adding mid-series books without needing to change the already existing items' dates, ex. always start at year 2020 and use increments of 10 days for the series to allow for numbers like series #4.5 (gets assigned the 45th day in 2020).

A further enhancement could be a "sort" drop-down when opening a feed, then using the pubDate to sort based on the criteria the user selects.

Why would this be helpful?

This would allow users to have control over the sorting of RSS feeds and more easily find the next book in a series or collection.

Future Implementation (Screenshot)

Screenshot 2024-07-08 at 11 59 11 AM

Audiobookshelf Server Version

v2.11.0

Current Implementation (Screenshot)

No response

advplyr commented 2 weeks ago

I'm not entirely sure I understand everything you are suggesting but I can see how to fix the collection and series RSS feeds so that they are in order. I can update it so that it uses the earliest book added at date as the starting point then add a day for each book. If a new book is added, or if the order of the series/collection is changed, then it will update the RSS feed.

noahkiss commented 2 weeks ago

That would be great!

It sounds like you took the important parts from my ramblings, so it's probably not important that you try to make sense of the rest 😛

Appreciate the reply & your work!