Skip to content

Instantly share code, notes, and snippets.

@eggplants
Last active May 6, 2024 19:24
Show Gist options
  • Save eggplants/4a7899faf6cb55e4f40e700dde82b169 to your computer and use it in GitHub Desktop.
Save eggplants/4a7899faf6cb55e4f40e700dde82b169 to your computer and use it in GitHub Desktop.
マルチネレコーズのアルバムzip全部落とす.sh
#!/bin/bash
# UPDATE: MARU-192
# NOTE: when you decompose those files, run: `ls|xargs -P 30 -I@ unar @`
# get latest album id
LATEST="$(
curl -s 'http://maltinerecords.cs8.biz/release.html' |
grep -oEm1 'MARU-[0-9]+' |
grep -oE '[0-9]+'
)"
# make directory
mkdir -p MALTINE_ALL_ALBUMS_ZIP
cd MALTINE_ALL_ALBUMS_ZIP || exit
# MARUB-001
wget -N http://maltinerecords.cs8.biz/release/b1/MARUB-001.zip
# MARUG-001
wget -N -O ./MARUG-001.zip http://maltinerecords.cs8.biz/release/marug01/MARUG01_PowerBook.zip
# MARUI-{001..003}: need to purchase
xdg-open https://www.amazon.co.jp/dp/B00MN54754 1>/dev/null 2>/dev/null
xdg-open https://music.apple.com/jp/album/567392143 1>/dev/null 2>/dev/null
xdg-open https://www.amazon.co.jp/dp/B00GTNXRHU 1>/dev/null 2>/dev/null
# MARUI-{004,005}
wget -N -O ./MARUI-004.zip http://maltinerecords.cs8.biz/release/marui4/marui004.zip
wget -N -O ./MARUI-005.zip http://maltinerecords.cs8.biz/marui5/MARUI005.zip
# MARUI-{006..009}: MP3 LISTEN!!!!!!!!!!!!
MARUI_titles=(mikeneko-homeless-purity-feat-nagi-nemotonijicon
aoi-yagawa-on-the-line-prod-tomggg america-feat-nagi-nemotonijicon peppermint_escape_plan)
for i in ${MARUI_titles[*]}; do
xdg-open "https://soundcloud.com/maltine-record/$i" 1>/dev/null 2>/dev/null
done
# MARUL-{002..006}
for i in 2 3 5 6; do
wget -N -O "./MARUL-$(printf %03d "$i").zip" "http://maltinerecords.cs8.biz/release/marul$i/marul$i.zip"
done
wget -N -O ./MARUL-004.zip http://maltinerecords.cs8.biz/release/marul4/DJ_WILDPARTY-MIX_TAPE.zip
# ZL×MARU-001
wget -N -O ./ZL×MARU-001.zip http://maltinerecords.cs8.biz/release/zl_maru01/zl_maru_001.zip
# ZL×MARU-002: bandcamp
# https://zoomlens.bandcamp.com/album/always
if ! [[ -f 'ZL×MARU-002.zip' ]]; then
mkdir -p zl002
paste <(
curl -s https://zoomlens.bandcamp.com/album/always | grep -oE '"https://t4[^"]+' | cut -b2-
) <(
curl -s https://zoomlens.bandcamp.com/album/always | grep -E '^[1-6]\.' | tr \ \. _-
) | while read -r u t; do
wget -N -O "./zl002/$t.mp3" "$u"
done
zip -r ZL×MARU-002.zip zl002
rm -r zl002
fi
# SKLxMARU-001
wget -N http://maltinerecords.cs8.biz/SKLxMARU-001.zip
# MARU×AM-001: BUY!!!!!!!!!
xdg-open http://smarturl.it/aijpho 1>/dev/null 2>/dev/null
# MARU-{6..8} {10..99} {101..109} {111..127} {141..143}
for i in {6..8} {10..99} {101..109} {111..127} {141..143}; do
wget -N -O "./MARU-$(printf %03d "$i").zip" "http://maltinerecords.cs8.biz/release/$i/maru$i.zip"
done
# MARU-009
if ! [[ -f 'MARU-009.zip' ]]; then
mkdir -p maru009
paste <(
echo http://maltinerecords.cs8.biz/release/9/0{1,2}.mp3 | tr \ \\n
) <(
echo -e "SIDE 1 - Zoukinchan\nSIDE 2 - White melo day" | tr \ _
) | while read -r u t; do
wget -N -O "./maru009/$t.mp3" "$u"
done
zip -r MARU-009.zip maru009
rm -r maru009
fi
# MARU-{128..140} {144..160} {162..167} {172..$LATEST}
for i in {128..140} {144..160} {162..167} $(seq 172 "$LATEST"); do
wget -N -O "./MARU-$i.zip" "http://maltinerecords.cs8.biz/release/$i/MARU$i.zip"
done
# MARU-100: need to purchase
xdg-open http://www.switch-store.net/SHOP/SS0027.html 1>/dev/null 2>/dev/null
# MARU-110
if ! [[ -f 'MARU-110.zip' ]]; then
mkdir -p maru110
paste <(
curl -s https://maltinerecords2.bandcamp.com/album/maru-110-nitpicker-ep |
grep -oE '"https://t4[^"]+' | cut -b2-
) <(
curl -s https://maltinerecords2.bandcamp.com/album/maru-110-nitpicker-ep |
sed -nr "s/^|$/\'/g;s/ /_/g;17,25s/\./-/gp"
) | while read -r u t; do
wget -N -O "./maru110/$t.mp3" "$u"
done
zip -r MARU-110.zip maru110
rm -r maru110
fi
# MARU-137
wget -N -O ./MARU-137.zip http://maltinerecords.cs8.biz/release/137/MARU137_Porter_Robinson_Re_Flicker.zip
# MARU-161
wget -N http://maltinerecords.cs8.biz/161/static/zip/MARU-161.zip
# MARU-{168,171}
for i in 168 171; do
wget -N "http://maltinerecords.cs8.biz/release/$i/MARU-$i.zip"
done
# MARU-{169,170}
for i in 169 170; do
wget -N "http://maltinerecords-m.cs8.biz/$i/MARU-$i.zip"
done
# checking lack of numbers
diff <(seq -w 3 1 "$LATEST") <(ls | grep -oE '[0-9]+' | sort -n) | grep \<
echo "DONE!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment