Skip to content

Instantly share code, notes, and snippets.

@icodeforlove
Last active December 23, 2017 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save icodeforlove/a9c9261a3c04986f012e to your computer and use it in GitHub Desktop.
Save icodeforlove/a9c9261a3c04986f012e to your computer and use it in GitHub Desktop.
download mp3's from bandcamp
var commands = [];
commands.push('mkdir "' + TralbumData.current.title + '"');
commands.push('cd "' + TralbumData.current.title + '"');
TralbumData.trackinfo.forEach(function (track, index) {
if (track.file) {
commands.push('curl -o "' + track.title + '.mp3" -L "' + track.file['mp3-128'] + '"');
}
});
console.log(commands.join('; '));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment