audiobookshelf icon indicating copy to clipboard operation
audiobookshelf copied to clipboard

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

Open shaksternano opened this issue 1 year ago • 5 comments

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

shaksternano avatar Jul 09 '24 13:07 shaksternano

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

nichwall avatar Jul 09 '24 13:07 nichwall

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

shaksternano avatar Jul 09 '24 15:07 shaksternano

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 avatar Jul 09 '24 16:07 ZLoth

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 avatar Jul 09 '24 16:07 shaksternano

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

advplyr avatar Sep 28 '24 21:09 advplyr