0.4.4 • Published 9 years ago

playlistsjs v0.4.4

Weekly downloads
3
License
-
Repository
github
Last release
9 years ago

PLAYLISTS.JS

A Spotify playlists downloader and parser. Takes an object with a user and a playlist id and returns a list of tracks. Also accepts an array

Installation

npm install playlistsjs -S

Usage

var playlists = require('playlistsjs');

playlists
    .download({user: "christofer.roth", playlist: "5TX2BIzygS5HPP2ySb2OED"})
    .then(function(playlist) {
      console.log(playlist);
      // { id: '5TX2BIzygS5HPP2ySb2OED',
      //  user: 'christofer.roth',
      //  tracks: 
      //   [ { href: '76b8ipYsNb9zPhliPfWqkn',
      //       song: 'A House Is Not A Motel',
      //       artist: 'Love',
      //       duration: '211693' },
      // ... ] }
    })
    .catch(function(error) {
      console.log(error);
    })
    .done();

playlists
    .download([{user: "christofer.roth", playlist: "2Ts7BsCckracyNBTV5AQzX"}, {user: "christofer.roth", playlist: "5TX2BIzygS5HPP2ySb2OED"}])
    .then(function(playlists) {
      console.log(playlists); // Array of playlist objects in same order as passed array.
    })
    .catch(function(error) {
      console.log(error);
    })
    .done();
0.4.4

9 years ago

0.4.3

9 years ago

0.4.2

9 years ago

0.4.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago