check for doubles

This commit is contained in:
2026-05-12 12:50:34 +02:00
parent 6a43394404
commit 3cf3e07059
+7 -1
View File
@@ -168,7 +168,13 @@ def fetch_all_books(cfg: CalibreConfig) -> list[dict]:
while True:
resp = client._session.get(
f"{cfg.url}/ajax/listbooks",
params={"draw": 1, "start": start, "length": page_size, "sort": "title", "order": "asc"},
params={
"draw": 1,
# DataTables 1.10+ names
"start": start, "length": page_size,
# DataTables 1.9.x names (older Calibre-Web)
"iDisplayStart": start, "iDisplayLength": page_size,
},
timeout=60,
)
resp.raise_for_status()