Files
2026-05-06 16:19:04 +02:00

23 lines
560 B
Fish
Executable File

#!/bin/fish
set base "https://server.elscione.com/Manga/Claymore%20%5BDigital%5D%20%5BVIZ%20Media%5D"
mkdir -p Claymore
for v in (seq -w 6 27)
set v_num (math $v)
# Correct chapter math
set start (math "($v_num - 2) * 6 + 4")
set end (math "$start + 5")
set start_p (printf "%03d" $start)
set end_p (printf "%03d" $end)
set url "$base/Claymore%20-%20c$start_p-$end_p%20%28v$v%29%20%5BDigital%5D%20%5BVIZ%20Media%5D.zip"
echo "Downloading v$v (c$start_p-$end_p)"
wget -P Claymore "$url"
or echo "Missing: v$v"
end