Skip to content

When de-selecting 'Separate Book Files from Library' the setting remains active #3527

@scdebaay

Description

@scdebaay

Describe the bug/problem

There is the option to activate 'Separate Book Files from Library' in the Database Configuration. When this is set and a separate folder is selected the book source files are looked for in that folder.
However, when the option is deselected, the separate folder setting remains active in the background resulting in unexpected behavior, like thumbnails not showing up because the app still seems to be looking for the source files in the separate folder.
When first setting the separate folder back to the original source folder, and THEN deselecting the option normal functionality resumes.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Database configuration' in the Admin settings.
  2. Click on 'Separate Book Files from Library'
  3. Select another folder than the original book source folder.
  4. Click 'Save'
  5. Return to dashboard to find that all thumbnails have disappeared.
  6. Return to Database configuration
  7. Deselect the 'Separate Book Files from Library' option
  8. Click 'Save'
  9. Return to the dashboard: The thumbnails are still missing.

Logfile

I have not looked into the logfiles for this error, but am willing to do so.

Expected behavior

I would expect that when deselecting the option, the set path would revert to the original book source path as defined in the 'Location of Calibre Database' value. This does not seem to be the case. When first manually setting the value of the 'Separate Book Files from Library' path back to the same value as the 'Location of Calibre Database' value and THEN deselecting the option normal functionality resumes. But this feels like a work-around.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: Ubuntu LTS
  • Calibre-Web version: [e.g. 0.6.8 or 087c4c5 (git rev-parse --short HEAD)]: 0.6.25
  • Docker container: [None/LinuxServer]: Linux Server Docker 29.1.4
  • Special Hardware: [e.g. Rasperry Pi Zero]: N/A
  • Browser: [e.g. Chrome 83.0.4103.97, Safari 13.3.7, Firefox 68.0.1 ESR]: Zen browser

Additional context
I would not classify this as a high priority bug, just some unexpected behaviour. But, users may find this unexpected and this report provides a work-around.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions