[Bug]: Sometimes Audio Files arent deleted from audio file list after M4B conversion #3212

Open
opened 2026-02-20 11:01:29 -05:00 by deekerman · 0 comments
Owner

Originally created by @Blindie92 on GitHub (Feb 2, 2026).

What happened?

When i convert a Book to M4B, some audio files keep in the Audio File List, they are deleted from The all File list and arent present in the Book Folder (but in the Bakup folder), re scan didnt help deleting the non existing audio file from the list. I think its a race condition between the LibraryScanner and the M4B Job, i dont know if it has anything todo with the CD Subfolders so the scanner triggers for every single CD and not for the whole book folder

Image

What did you expect to happen?

All files except the m4b should be removed from the audio file list

Steps to reproduce the issue

  1. enable file watcher
  2. convert a long book with a lot of files to m4b
  3. sometimes the single files stay in the audio file list

Audiobookshelf version

v2.32.1

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

2026-02-01.txt

Additional Notes

No response

Originally created by @Blindie92 on GitHub (Feb 2, 2026). ### What happened? When i convert a Book to M4B, some audio files keep in the Audio File List, they are deleted from The all File list and arent present in the Book Folder (but in the Bakup folder), re scan didnt help deleting the non existing audio file from the list. I think its a race condition between the LibraryScanner and the M4B Job, i dont know if it has anything todo with the CD Subfolders so the scanner triggers for every single CD and not for the whole book folder <img width="1870" height="1136" alt="Image" src="https://github.com/user-attachments/assets/9369611b-bb22-4e21-adb3-89972c0e846b" /> ### What did you expect to happen? All files except the m4b should be removed from the audio file list ### Steps to reproduce the issue 1. enable file watcher 2. convert a long book with a lot of files to m4b 3. sometimes the single files stay in the audio file list ### Audiobookshelf version v2.32.1 ### 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 [2026-02-01.txt](https://github.com/user-attachments/files/25016367/2026-02-01.txt) ### Additional Notes _No response_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/audiobookshelf-advplyr#3212
No description provided.