Skip to content

[bug] library_refresh ignores dirs.json ingest dir #190

@GameDungeon

Description

@GameDungeon

Describe the bug
Library refresh uses a hard coded path "/cwa-book-ingest" that causes a error if the ingest folder is changed in dirs.json. An easy fix would be grabbing that path from dirs.json.

@library_refresh.route("/cwa-library-refresh", methods=["GET", "POST"])
@login_required_if_no_ano
def cwa_library_refresh():
flash(_("Library Refresh: Initialising Book Ingest System, please wait..."), category="cwa_refresh")
result = subprocess.run(['python3', '/app/calibre-web-automated/scripts/ingest_processor.py', '/cwa-book-ingest'])
return_code = result.returncode

Metadata

Metadata

Assignees

No one assigned

    Labels

    in progressA fix is currently being worked on / is in testing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions