Warn when the ingest folder has no library to match

Without CWA_URL and CALIBRE_DB_PATH, each update goes to CWA as a new book.
This commit is contained in:
tim
2026-10-02 21:04:49 +02:00
parent c188795852
commit f961e4781e
2 changed files with 20 additions and 0 deletions
+5
View File
@@ -89,3 +89,8 @@ def prepare() -> None:
if not PERSONAL_INI.exists():
shutil.copy(DEFAULT_PERSONAL_INI, PERSONAL_INI)
logger.info(f"Created the default FanFicFare configuration at {PERSONAL_INI}")
if INGEST_DIR and not (CWA_URL or CALIBRE_DB_PATH):
logger.warning(
"INGEST_DIR is set, but CWA_URL and CALIBRE_DB_PATH are not. Bindery cannot find the library book "
"of a story, so each update adds a new book to CWA."
)