Grooveshark.downloadPlaylistSave()

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

This method is MUCH slower than .downloadPlaylist() method because it waits just downloaded song duration to go for the next one. Why? Just to dont be banned from Grooveshark for some few hours!

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.downloadPlaylistSave({

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.