advplyr / audiobookshelf

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

[Enhancement]: Modify date book was added to library #3480

Open samuelvisser opened 1 week ago

samuelvisser commented 1 week ago

Type of Enhancement

Server Backend

Describe the Feature/Enhancement

To add a new metadata field for the date an item was added to the library.

Why would this be helpful?

Audiobookshelf shows quite prominentally items that where 'recently added' to the library. However as a new user, books I finished years ago show up as just recently added, depending on the order audiobookshelf happened to scan them initially, Moreover, if I move the audiobookshelf installation elsewhere, again all these 'added_at' dates get reset. Audiobookshelf already allows for extensive metadata editing, to me it is surprising there seems to be no way to edit the 'added_at' date even though it is used as one of the primary categories on the library homepage.

Future Implementation (Screenshot)

I dont know if this is possible, but adding a field to the opf file that can already be read for metadata would make sense to me. Additionally adding it to the web UI would be a nice to have.

Audiobookshelf Server Version

2.13.4

Current Implementation (Screenshot)

Screenshot 2024-10-03 at 13 05 58
nichwall commented 1 week ago

You can manually edit the addedAt and updatedAt columns in the database. I don't think these columns should be editable through the API or web client because it's specific to the server and not book-metadata related.

samuelvisser commented 1 week ago

What if a new purchasedAt column got added that is editable? That in the end is what i expect most users really would find valuable, the date at which it was added to Audiobookshelf is less so

averageyogi commented 1 week ago

The sentiment of preserving metadata/listened status after a file move or ABS reinstall is similar to #3085 and all the associated issues.