[Bug]: Chapters not updated during scan #1401

Open
opened 2026-02-20 10:09:47 -05:00 by deekerman · 6 comments
Owner

Originally created by @MikePrime21 on GitHub (Sep 19, 2023).

Describe the issue

My library is for listening to web novels. So each day multiple existing novels get updated with new chapters and I drop those chapters as mp3 files into the appropriate web novel folder. I have the file watcher turned off and setup my library to run a scan overnight each day.

The new files are detected and added to the existing web novel correctly, but the chapter count does not change. This used to work fine in the 2.3 versions and prior, just now it doesn't seem to work.

Also as a side note, is it possible to update the % complete for in-progress audiobooks when said audiobooks have new files added? The only way I can see the updated progress is when I start playing the audiobook.

Steps to reproduce the issue

  1. Create a library
  2. Run a scan to import an audiobook
  3. add mp3 files to the folder where the audiobook is located
  4. run the scan again and see the chapters are not updated.

Audiobookshelf version

2.4.3

How are you running audiobookshelf?

Docker

Originally created by @MikePrime21 on GitHub (Sep 19, 2023). ### Describe the issue My library is for listening to web novels. So each day multiple existing novels get updated with new chapters and I drop those chapters as mp3 files into the appropriate web novel folder. I have the file watcher turned off and setup my library to run a scan overnight each day. The new files are detected and added to the existing web novel correctly, but the chapter count does not change. This used to work fine in the 2.3 versions and prior, just now it doesn't seem to work. Also as a side note, is it possible to update the % complete for in-progress audiobooks when said audiobooks have new files added? The only way I can see the updated progress is when I start playing the audiobook. ### Steps to reproduce the issue 1. Create a library 2. Run a scan to import an audiobook 3. add mp3 files to the folder where the audiobook is located 4. run the scan again and see the chapters are not updated. ### Audiobookshelf version 2.4.3 ### How are you running audiobookshelf? Docker
Author
Owner

@ckennard commented on GitHub (Apr 5, 2024):

I'm running into this same issue, but after a different behavior. I initially had multiple file MP3s when I set up my library, but now I'm in the process of switching them to M4B files. Audiobookshelf picks up the new file, but doesn't pull chapters/chapter names from the M4B, just maintains the list of old chapters pulled from mp3s.

@ckennard commented on GitHub (Apr 5, 2024): I'm running into this same issue, but after a different behavior. I initially had multiple file MP3s when I set up my library, but now I'm in the process of switching them to M4B files. Audiobookshelf picks up the new file, but doesn't pull chapters/chapter names from the M4B, just maintains the list of old chapters pulled from mp3s.
Author
Owner

@dima-ser commented on GitHub (Sep 5, 2024):

I have the same issue. How do you actually refresh the chapters to update according to the filesystem?

@dima-ser commented on GitHub (Sep 5, 2024): I have the same issue. How do you actually refresh the chapters to update according to the filesystem?
Author
Owner

@Linden-Ryuujin commented on GitHub (Dec 14, 2024):

This also happens if you just update the chapters meta data in an m4b - the changes are not picked up if you re-scan the book.

For anyone else experiencing this, you can update the metadata.json in the mean time as a work around. A re-scan will pull the chapters from this correctly.

@Linden-Ryuujin commented on GitHub (Dec 14, 2024): This also happens if you just update the chapters meta data in an m4b - the changes are not picked up if you re-scan the book. For anyone else experiencing this, you can update the metadata.json in the mean time as a work around. A re-scan will pull the chapters from this correctly.
Author
Owner

@ghost commented on GitHub (Dec 22, 2024):

This also happens if you just update the chapters meta data in an m4b - the changes are not picked up if you re-scan the book.

For anyone else experiencing this, you can update the metadata.json in the mean time as a work around. A re-scan will pull the chapters from this correctly.

Just for my understanding: I'd have to update the json for each Audiobook with this problem or is there a way to fix all of them at once?

@ghost commented on GitHub (Dec 22, 2024): > This also happens if you just update the chapters meta data in an m4b - the changes are not picked up if you re-scan the book. > > For anyone else experiencing this, you can update the metadata.json in the mean time as a work around. A re-scan will pull the chapters from this correctly. Just for my understanding: I'd have to update the json for each Audiobook with this problem or is there a way to fix all of them at once?
Author
Owner

@Linden-Ryuujin commented on GitHub (Jan 2, 2025):

You'd have update each json individually I'm afraid.

@Linden-Ryuujin commented on GitHub (Jan 2, 2025): You'd have update each json individually I'm afraid.
Author
Owner

@ghost commented on GitHub (Jan 6, 2025):

You'd have update each json individually I'm afraid.

In the Discord Vito created a script that might solve this 😊
https://discord.com/channels/942908292873723984/942914154254176257/1320430813007052931

Here is the Repo:
https://github.com/Vito0912/absToolbox

@ghost commented on GitHub (Jan 6, 2025): > You'd have update each json individually I'm afraid. In the Discord Vito created a script that might solve this 😊 https://discord.com/channels/942908292873723984/942914154254176257/1320430813007052931 Here is the Repo: https://github.com/Vito0912/absToolbox
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#1401
No description provided.