sweep 01-06: big-file resume queue (vol1 184MB + art 298MB, .part resume-safe)
This commit is contained in:
parent
bfba5fa048
commit
0b092a7b82
2 changed files with 21 additions and 0 deletions
20
tools/lgdl-en0106-big.sh
Normal file
20
tools/lgdl-en0106-big.sh
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
# tools/lgdl-en0106-big.sh — resume the two big files (vol1 184MB, art 298MB)
|
||||
# .part files are resume-safe; long timeouts for CDN-throttled big scans.
|
||||
cd /home/dima/jung
|
||||
LOG=/tmp/enq-0106-big.log
|
||||
mkdir -p "$(dirname "$LOG")"
|
||||
|
||||
dl() {
|
||||
local fid="$1" out="$2" name="$3"
|
||||
if [ -f "$out/$name" ]; then echo "skip $name"; return 0; fi
|
||||
timeout 3600 python3 -u -c "
|
||||
import sys; sys.path.insert(0, 'tools')
|
||||
import lgdl
|
||||
ok = lgdl.download('$fid', '$out', '$name', tries=3)
|
||||
print('DONE $name' if ok else 'FAIL $name')
|
||||
" >> "$LOG" 2>&1
|
||||
}
|
||||
dl 93442007 downloads/03-myths-fairy-tales 50-historical-atlas-vol1-animal-powers-en-1983.pdf
|
||||
dl 93468973 downloads/04-pictures 04-art-of-c-g-jung-en-2018.epub
|
||||
echo "QUEUE DONE" > /tmp/enq-0106-big.DONE
|
||||
Loading…
Add table
Add a link
Reference in a new issue