Skip to content

[bug] Checksum generation uses wrong metadata.db path with split libraries #1513

Description

@dierochade

With split-library mode enabled, imports succeed but checksum generation fails:

[ingest-processor] Error generating book checksums: no such table: books

NewBookProcessor stores the real database path in self.metadata_db, then changes self.library_dir to the split book-storage path.
Most database operations correctly use self.metadata_db, but generate_book_checksums() reconstructs the path using:
calibre_db_path = os.path.join(self.library_dir, "metadata.db")
This opens or creates an empty metadata.db inside the split storage directory, causing the books query to fail.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions