Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using calibredb for upload processing #3087

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 19, 2024

  1. Allow using calibredb for upload processing

    Some things calibre is able to do via plugins that would be helpful to handle in calibre-web, but there's not much point in re-implementing those in calibre-web directly. Things like importing ACSM files and getting the resulting ebook directly, or importing KFX files that require extra processing. To accommodate this, and allowing everything to happen in one interface instead of switching between calibre and calibre-web, this PR adds:
    
    - A new setting, linked to the main upload permission, to use calibredb for uploading files
    - The location the linuxserver Docker image installs calibre to the list of paths searched for calibre binaries
    - The chunk of code to `upload()` in `editbooks.py` to shell out to `calibredb`
    - The original file extension to the temporary file path, since calibredb needs that for format detection
    jgoguen committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    941c499 View commit details
    Browse the repository at this point in the history