[Bug]: wrong folder with sequel books #2678

Closed
opened 2026-04-25 00:09:33 +02:00 by adam · 7 comments
Owner

Originally created by @Silther on GitHub (Mar 21, 2025).

What happened?

If you upload a book which is not part of any series it gets added directly into the author folder.
Now the author has decided he wants to make a series out of that book so he creates a sequel and the series name is the same as the title of the first book.

normally it would be something like:
library/"frank herbert"/dune/dune/audiobook.m4b

but as it was no series when the first book was uploaded, it is:
library/"franz herbert"/dune/audiobook.m4b

if I now add the sequel:

Frank Herbert
|--           Dune
|             |--  audiobook.m4b
|             |--  cover.png
|             |--  Dune Messiah
|             |    |--          audiobook.m4b
|             |    |--          cover.png

if I now search for my newly added book dune messiah it would not be displayed as its own book, but as additional media file in the book Dune.

What did you expect to happen?

if a newly added book has a series title that matches the book title of another audiobook from the same author it should either throw an error or move the matching book into a new series folder with the same name and than add the new book to the series folder (and not the book folder).

Steps to reproduce the issue

see "what happened"

Audiobookshelf version

v2.20

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs


Additional Notes

No response

Originally created by @Silther on GitHub (Mar 21, 2025). ### What happened? If you upload a book which is not part of any series it gets added directly into the author folder. Now the author has decided he wants to make a series out of that book so he creates a sequel and the series name is the same as the title of the first book. normally it would be something like: library/"frank herbert"/dune/dune/audiobook.m4b but as it was no series when the first book was uploaded, it is: library/"franz herbert"/dune/audiobook.m4b if I now add the sequel: ``` Frank Herbert |-- Dune | |-- audiobook.m4b | |-- cover.png | |-- Dune Messiah | | |-- audiobook.m4b | | |-- cover.png ``` if I now search for my newly added book dune messiah it would not be displayed as its own book, but as additional media file in the book Dune. ### What did you expect to happen? if a newly added book has a series title that matches the book title of another audiobook from the same author it should either throw an error or move the matching book into a new series folder with the same name and than add the new book to the series folder (and not the book folder). ### Steps to reproduce the issue see "what happened" ### Audiobookshelf version v2.20 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:09:33 +02:00
adam closed this issue 2026-04-25 00:09:33 +02:00
Author
Owner

@advplyr commented on GitHub (Mar 21, 2025):

Just to confirm, you are using the upload page in Abs?

@advplyr commented on GitHub (Mar 21, 2025): Just to confirm, you are using the upload page in Abs?
Author
Owner

@nichwall commented on GitHub (Mar 21, 2025):

Every book needs to be in its own folder. If the book is now part of a series, you'll want to make a series folder and move the original book to the series folder.

@nichwall commented on GitHub (Mar 21, 2025): Every book needs to be in its own folder. If the book is now part of a series, you'll want to make a series folder and move the original book to the series folder.
Author
Owner

@advplyr commented on GitHub (Mar 21, 2025):

If this is done through the uploader in Abs this can be considered a bug since the upload page shows it is adding a book but then doesn't.

@advplyr commented on GitHub (Mar 21, 2025): If this is done through the uploader in Abs this can be considered a bug since the upload page shows it is adding a book but then doesn't.
Author
Owner

@Silther commented on GitHub (Mar 21, 2025):

Just to confirm, you are using the upload page in Abs?

yes, I almost only use that upload page.

I had it sometime with newly released books that they got uploaded successfully and then "disappeared", now I now why.

@Silther commented on GitHub (Mar 21, 2025): > Just to confirm, you are using the upload page in Abs? yes, I almost only use that upload page. I had it sometime with newly released books that they got uploaded successfully and then "disappeared", now I now why.
Author
Owner

@Silther commented on GitHub (Mar 21, 2025):

I you can reproduce it be uploading a new book with the author of specific book and as the series you take the title of that book

https://github.com/user-attachments/assets/649efc2e-e1c1-4235-8928-e016aeb31b73

@Silther commented on GitHub (Mar 21, 2025): I you can reproduce it be uploading a new book with the author of specific book and as the series you take the title of that book https://github.com/user-attachments/assets/649efc2e-e1c1-4235-8928-e016aeb31b73
Author
Owner

@Silther commented on GitHub (Mar 21, 2025):

Every book needs to be in its own folder. If the book is now part of a series, you'll want to make a series folder and move the original book to the series folder.

But that is not something most users would expect. they would just think that the upload failed without error.
You could say it's not an real error but more unexpected behavior.

@Silther commented on GitHub (Mar 21, 2025): > Every book needs to be in its own folder. If the book is now part of a series, you'll want to make a series folder and move the original book to the series folder. But that is not something most users would expect. they would just think that the upload failed without error. You could say it's not an real error but more unexpected behavior.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 27, 2025):

Fixed in v2.21.0.

@github-actions[bot] commented on GitHub (Apr 27, 2025): Fixed in [v2.21.0](https://github.com/advplyr/audiobookshelf/releases/tag/v2.21.0).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2678