Skip to content

Instantly share code, notes, and snippets.

@strfry
Created August 7, 2022 03:49
Show Gist options
  • Save strfry/daf9fa4a3d537a29b78242dea0823d88 to your computer and use it in GitHub Desktop.
Save strfry/daf9fa4a3d537a29b78242dea0823d88 to your computer and use it in GitHub Desktop.
#!/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