Handle move better

This commit is contained in:
Tiberiu Ichim 2026-02-06 14:19:13 +02:00
parent 4cfafeb174
commit d358b82b17
2 changed files with 91 additions and 3 deletions

View file

@ -81,9 +81,13 @@ POST /api/items/:id/move
11. Update `audioFiles` paths in Book model (for playback to work)
12. Update `ebookFile` path in Book model (if present)
13. Update `podcastEpisodes` audio file paths for Podcasts
14. Emit socket events: `item_removed` (old library), `item_added` (new library)
15. Reset filter data for both libraries
16. On error: rollback file move if possible
14. Handle Series and Authors:
- Moves/merges series and authors to target library
- Copies metadata (description, ASIN) and images if necessary
- Deletes source series/authors if they become empty
15. Emit socket events: `item_removed` (old library), `item_added` (new library)
16. Reset filter data for both libraries
17. On error: rollback file move if possible
### Frontend Flow