How to Archive a Comic

Rename Command

Rename 1__ to 01__

rename -n 's/^(\d+)__/sprintf("%02d__", $1)/e' *

Download

time gallery-dl --cbz "https://mangadex.org/title/16fea29f-2511-47e0-bdc5-cf73e08c7143"

Upload

Upload the first file on the web. Remember to add publisher and contributor metadata. Get the metadata from https://myanimelist.net/

bash ~/script.sh identifer

set -euo pipefail
find . -iname "*.cbz" | while read file
do
  ia upload "$1" "$file" --metadata="mediatype:texts" --retries 10 --delete
done
set -euo pipefail
ia upload "$1" *.cbz --metadata="mediatype:texts" --retries 10 --delete

Add to database

esperoj ingest_comic identifier