Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 956 Bytes

Readme.md

File metadata and controls

32 lines (27 loc) · 956 Bytes

#Spotify Downloader

Downloads individual songs or playlists from Spotify as mp3 files. Songs are sourced from videos posted on youtube and song metadata is from the Spotify API

###Features

  • Downloads and writes song metadata
  • Album Images, Artist Information, Track Title, embedded in mp3 file
  • Concurrent downloading (multiple songs at a time) for playlists

##Dependencies FFMPEG - https://www.ffmpeg.org/

##Usage

  var downloader = require('spotify-downloader');
  downloader.downloadTrack('spotify:track:2P4OICZRVAQcYAV2JReRfj', "song.mp3", function (err){
    if (err){
      console.log("download failed");
    }else{
      console.log("track download succeeded");
    }
  })

  downloader.downloadPlaylist('spotify:user:jackke1:playlist:02fquJWP9c20cobDsJrzfB', "playlist-directory", function (err){
    if (err){
      console.log("download failed");
    }else{
      console.log("playlist download succeeded");
    }
  })