Grooveshark.downloadPlaylist()

Download all the song, and save it into a folder, by playlist ID

DANGER: This method goes really fast downloading songs, but you can be banned by Grooveshark for few hours, for a safer, but slower download method, please use downloadPlaylistSafe. More or less with this method you can download 40 songs before beeing banned, not bad!

Usage

Hover over inputs/exits for more info.

var Grooveshark = require('machinepack-grooveshark');


// Download all the song, and save it into a folder, by playlist ID

Grooveshark.downloadPlaylist({

id: '104314395',

path: '/www/music/userId/coolFolder',

overwrite: false,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Playlist not found please check if the id is correct

notFound: function () {

 

},

// It looks like we are banned by Grooveshark, please try again in a few hours

downloadLimitExceded: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

id required

E.g: http://grooveshark.com/#!/playlist/Powerexplosive/104314395 the last number, 104314395, is the ID

'104314395'
path required

ABSOLUTE Path to the folder where the songs will be saved, if the folder doesn't exist it will be created

'/www/music/userId/coolFolder'
overwrite

Defaults false, if this is true if a song name is repeated it will overwrite the old song

false

Exits

error

An unexpected error occurred.

notFound

Playlist not found please check if the id is correct

downloadLimitExceded

It looks like we are banned by Grooveshark, please try again in a few hours

success

OK.