[Bug]: Re-scanning does not update file size #2093

Closed
opened 2026-04-25 00:03:24 +02:00 by adam · 5 comments
Owner

Originally created by @shaksternano on GitHub (Jul 9, 2024).

What happened?

The file size displayed on the book summary does not change if the book files are updated. The correct file is displayed in the "Files" tab when editing a book.

What did you expect to happen?

The file sizes of books in their summary should update after updating book files and then re-scanning the library. Re-scanning individual books does not work either.

Steps to reproduce the issue

  1. Upload a book.
  2. Change the book files so that the total file size is different.
  3. File size displayed in book summary does not change and remains the same as when the book was first uploaded.

Audiobookshelf version

v2.11.0

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?

Firefox

Logs

No response

Additional Notes

No response

Originally created by @shaksternano on GitHub (Jul 9, 2024). ### What happened? The file size displayed on the book summary does not change if the book files are updated. The correct file is displayed in the "Files" tab when editing a book. ### What did you expect to happen? The file sizes of books in their summary should update after updating book files and then re-scanning the library. Re-scanning individual books does not work either. ### Steps to reproduce the issue 1. Upload a book. 2. Change the book files so that the total file size is different. 3. File size displayed in book summary does not change and remains the same as when the book was first uploaded. ### Audiobookshelf version v2.11.0 ### 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? Firefox ### Logs _No response_ ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:03:24 +02:00
adam closed this issue 2026-04-25 00:03:24 +02:00
Author
Owner

@nichwall commented on GitHub (Jul 9, 2024):

Can you enable Debug logs and see if the file is being scanned? There should be logs saying whether there were changes.

@nichwall commented on GitHub (Jul 9, 2024): Can you enable Debug logs and see if the file is being scanned? There should be logs saying whether there were changes.
Author
Owner

@shaksternano commented on GitHub (Jul 9, 2024):

Logs say the item was scanned and was up to date.

@shaksternano commented on GitHub (Jul 9, 2024): Logs say the item was scanned and was up to date.
Author
Owner

@ZLoth commented on GitHub (Jul 9, 2024):

Testing here.... since I'm changing the files from MP3 to M4B....

Prior to the deletion:
image

After deleting the original MP3 files:
image

And, adding the new M4B files:
image

@ZLoth commented on GitHub (Jul 9, 2024): Testing here.... since I'm changing the files from MP3 to M4B.... Prior to the deletion: ![image](https://github.com/advplyr/audiobookshelf/assets/6700159/9d662183-8ef8-4ed0-8084-a781026fe8bf) After deleting the original MP3 files: ![image](https://github.com/advplyr/audiobookshelf/assets/6700159/a6c1995d-6223-425f-8f3c-ebc5f60bcda8) And, adding the new M4B files: ![image](https://github.com/advplyr/audiobookshelf/assets/6700159/1acb7237-49d6-48dd-a29e-0c94ed6ca7a8)
Author
Owner

@shaksternano commented on GitHub (Jul 9, 2024):

I should probably mention that for me I compressed the files in place, so the filename or extension never changed. I also never deleted the files before replacing them with the compressed version.

@shaksternano commented on GitHub (Jul 9, 2024): I should probably mention that for me I compressed the files in place, so the filename or extension never changed. I also never deleted the files before replacing them with the compressed version.
Author
Owner

@advplyr commented on GitHub (Sep 28, 2024):

I'm not able to reproduce this. Can you share exactly what you are doing to modify the file?

@advplyr commented on GitHub (Sep 28, 2024): I'm not able to reproduce this. Can you share exactly what you are doing to modify the file?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2093