spotijay-lib

0.2.1 • Public • Published

spotijay-lib

Download tracks from Spotify in 320kbps.

Installation

  1. npm install
  2. Install libspotify
  3. Install following libraries: lame sox eye3D
  • Ubuntu/Debian: sudo apt-get install lame sox eyed3
  • Arch: yaourt -S libspotify python2-eyed3 lame sox
  • OSX: brew install homebrew/binary/libspotify lame sox eyeD3
  1. Copy your appkey in the root of the dir that uses this library (or specify another path, its the __dirname below that points to the appkey dir)

Usage

if (args.playlist) {
  Spotijay(args.username, args.password, __dirname, function(err, spotify) {
    spotify.downloadPlaylistByUrl(args.playlist, args.dir, errorCallback)
  })
} else if (args.track) {
  Spotijay(args.username, args.password, __dirname, function(err, spotify) {
    spotify.getTrackByUrl(args.track, args.dir, errorCallback)
  })
}

For more see Spotijay

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i spotijay-lib

    Weekly Downloads

    3

    Version

    0.2.1

    License

    none

    Last publish

    Collaborators

    • christiaan.maks