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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user