Created
August 7, 2022 03:49
-
-
Save strfry/daf9fa4a3d537a29b78242dea0823d88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ALBUMS="claatin1 claatin2 claatin3 allboommm1 allboommm2 silver dancecore" | |
JS_PREAMBLE="\ | |
var Amplitude = {}; \ | |
Amplitude.init = (x) => { console.log(JSON.stringify(x)) }; \ | |
" | |
for ALBUM in $ALBUMS ; do | |
src="$( curl https://www.loode.net/$ALBUM/assets/js/player/LOODE_PL.js )" | |
SONGS=$(qjs -e "$(echo $JS_PREAMBLE $src)" | jq -r '.songs[] | .url') | |
for songurl in $SONGS ; do | |
wget -c loode.net/$ALBUM/$songurl | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment