[Bug]: When an item is moved outside baseDir library still recognizes book #968

Open
opened 2026-04-24 23:27:53 +02:00 by adam · 0 comments
Owner

Originally created by @yuuzhan on GitHub (Feb 20, 2023).

Describe the issue

When testing another feature, I noticed that if I move a book from one library folder to another (configured as different libraries, not just different folders in a single library) the item is still attached to the first library, with a path in the second library. When browsing libraries it is not visible in the library even though the file is in the second libraries folder. This might be expected behavior?

An example below:

Steps to reproduce the issue

  1. Create two libraries in two different folders
  2. Move a book from one libraries folder to the other (manually)
    Before the move:
"id": "li_e6a01z5znyp3mp79ba",
"ino": "3096224743882962",
"libraryId": "lib_0s2nami7baw6681608",
"folderId": "fol_88cub7okw9mdw7pj9o",
"path": "D:/Audiobooks/The Witchlands - Susan Dennard/1 - Truthwitch",
"relPath": "The Witchlands - Susan Dennard/1 - Truthwitch",

After the move (folderId changes, libraryID does not)

"id": "li_e6a01z5znyp3mp79ba",
"ino": "3096224743882962",
"libraryId": "lib_0s2nami7baw6681608",
"folderId": "fol_n3pw6knhqckbhb382x",
"path": "D:/audiobook2/1 - Truthwitch",
"relPath": "1 - Truthwitch",

Note: here is an item in the second library (notice the library ID is different)

"id": "li_shbk6pgol85ynx5zlw",
"ino": "2814749767176475",
"libraryId": "lib_73s32p4i7kwunpvqhk",
"folderId": "fol_n3pw6knhqckbhb382x",
"path": "D:/audiobook2/Bobiverse - Dennis E. Taylor/2 - For We Are Many",
"relPath": "Bobiverse - Dennis E. Taylor/2 - For We Are Many",

Audiobookshelf version

2.2.14

How are you running audiobookshelf?

Docker

Originally created by @yuuzhan on GitHub (Feb 20, 2023). ### Describe the issue When testing another feature, I noticed that if I move a book from one library folder to another (configured as different libraries, not just different folders in a single library) the item is still attached to the first library, with a path in the second library. When browsing libraries it is not visible in the library even though the file is in the second libraries folder. This might be expected behavior? An example below: ### Steps to reproduce the issue 1. Create two libraries in two different folders 2. Move a book from one libraries folder to the other (manually) Before the move: ``` "id": "li_e6a01z5znyp3mp79ba", "ino": "3096224743882962", "libraryId": "lib_0s2nami7baw6681608", "folderId": "fol_88cub7okw9mdw7pj9o", "path": "D:/Audiobooks/The Witchlands - Susan Dennard/1 - Truthwitch", "relPath": "The Witchlands - Susan Dennard/1 - Truthwitch", ``` After the move (folderId changes, libraryID does not) ``` "id": "li_e6a01z5znyp3mp79ba", "ino": "3096224743882962", "libraryId": "lib_0s2nami7baw6681608", "folderId": "fol_n3pw6knhqckbhb382x", "path": "D:/audiobook2/1 - Truthwitch", "relPath": "1 - Truthwitch", ``` Note: here is an item in the second library (notice the library ID is different) ``` "id": "li_shbk6pgol85ynx5zlw", "ino": "2814749767176475", "libraryId": "lib_73s32p4i7kwunpvqhk", "folderId": "fol_n3pw6knhqckbhb382x", "path": "D:/audiobook2/Bobiverse - Dennis E. Taylor/2 - For We Are Many", "relPath": "Bobiverse - Dennis E. Taylor/2 - For We Are Many", ``` ### Audiobookshelf version 2.2.14 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:27:53 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#968