jung/downloads/08-developmental/en-queue.sh
Dmitry Kokorin 9805eabf2c sec08 FULLY COMPLETE: 48 books (20 ✅/1 🔶/27 ❌), 44 files (333 MB: EN 31 + RU 13)
Research (Phase 0-2): 28 new dossiers + 8 updated; RSL/libgen/flib/castalia/alib/rutitles sweeps;
5 RU rescues (CW4 АСТ 2021, Калшед Когито 2015, Нойманн «Ребёнок» Касталия 2026,
Фордхэм «Дети как личности» Касталия-предзаказ, Герман Бомбора 2022); Blos trap documented
(RU «Психоанализ подросткового возраста» = The Young Adolescent, NOT On Adolescence).

Downloads (content-verified, mislinked/review files discarded: 08/14/18/27/30/38 reviews,
33 JAPA article, 2 md5 dups):
- EN 31: libgen queue (en-queue.sh tries=3 + 25-min cooldown rounds) + ia (CW4 Princeton,
  Freud SE 24 vol. for items 19/20); EN gaps: 15/24/39 absent, 14/18/38 ia-restricted,
  08/27/30/33 review-fragment-only, 25 absent
- RU 13: flib ×7 + libgen ×6; RU gaps: 25 (no file), 08 (preorder)

Docs: 48 cards CANON v3 (linter 0), MANIFEST 48 per-item blocks, MISSING 27❌/1🔶,
SUMMARY at-a-glance; xref stale-check 0; migrate_cards_v3.py: +rtf to fname_re
2026-09-26 21:48:43 +03:00

22 lines
764 B
Bash
Executable file

#!/bin/bash
cd /home/dima/jung
D=downloads/08-developmental
LOG=$D/en-queue.log
echo "=== EN queue start $(date)" >> "$LOG"
while read -r f_id ed_id name; do
[ -z "$f_id" ] && continue
if ls "$D/$name"*.pdf "$D/$name"*.epub "$D/$name"*.fb2 "$D/$name"*.doc "$D/$name"*.rtf >/dev/null 2>&1; then
echo "SKIP (exists): $name" >> "$LOG"
continue
fi
rm -f "$D/$name"*.part
echo "=== $name (f/$f_id) $(date)" >> "$LOG"
timeout 1500 python3 -u -c "
import sys; sys.path.insert(0,'tools'); import lgdl
r = lgdl.download(sys.argv[1], sys.argv[2], sys.argv[3], tries=3)
sys.exit(0 if r else 1)" "$f_id" "$D" "$name" >> "$LOG" 2>&1
rc=$?
echo "rc=$rc $name" >> "$LOG"
sleep 2
done < "$D/en-queue.txt"
echo "=== EN queue round DONE $(date)" >> "$LOG"