advplyr / audiobookshelf

Self-hosted audiobook and podcast server
https://audiobookshelf.org
GNU General Public License v3.0
6.25k stars 438 forks source link

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

Open shaksternano opened 2 months ago

shaksternano commented 2 months ago

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

nichwall commented 2 months ago

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

shaksternano commented 2 months ago

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

ZLoth commented 2 months ago

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

shaksternano commented 2 months ago

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.