Keep downloaded EPUBs so kobodl can skip them on future syncs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Louis Simoneau
2026-04-10 21:16:04 +10:00
parent 5197f92685
commit 79279595ac

View File

@@ -544,10 +544,11 @@
docker compose exec -T kobodl kobodl --config /home/config/kobodl.json book get --get-all --output-dir /downloads docker compose exec -T kobodl kobodl --config /home/config/kobodl.json book get --get-all --output-dir /downloads
# Import any new EPUBs into Calibre library # Import any new EPUBs into Calibre library
# Files are kept in /downloads so kobodl can skip them next run
docker compose exec -T --user abc calibre-web sh -c ' docker compose exec -T --user abc calibre-web sh -c '
for f in /downloads/*.epub; do for f in /downloads/*.epub; do
[ -f "$f" ] || continue [ -f "$f" ] || continue
calibredb add "$f" --with-library /library/ && rm "$f" calibredb add "$f" --with-library /library/ || true
done done
' '
tags: calibre tags: calibre