Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

cry/spotify-to-headphones

Repository files navigation

Spotify → Headphones

Build Status

This project is depreciated. Please use another project!

This project is in very early development. Expect bugs.

As of now, this must be placed at the root web directory, i.e. https://s2h.domain/ or https://localhost:3300/

Spotify to Headphones allows you to view all of your spotify playlists and send albums directly to Headphones for download, all in one place.

Banner

Features

  • Load songs from Spotify playlists and send them to Headphones
  • Play 30 second preview directly
  • Show which songs have been queued for download

Setup

Requirements: PHP 5.5+, sqlite3 extension

  • Clone this repo, i.e. git clone https://github.com/carey-li/spotify-to-headphones.git
  • Place the files in the webroot, i.e. /var/www, /srv
  • Run composer install to grab dependencies, install composer from here if you don't have it.
  • Modify your webserver config to enable directory rewriting, i.e.

        location / {
            try_files $uri $uri/ /index.php?$args;
        }

  • Ensure the directory is writable by the webserver user, i.e. www-data
    • chown -R www-data:www-data /srv/s2h

First-run Setup

  • Navigate to the webroot, S2H will run through a first run
    • Note the url the setup shows in the red banner Redirect

Setting up the Spotify Application

  • Navigate to https://developer.spotify.com/my-applications/#!/applications
  • Create an application, name and description can be arbitrary.
  • Note down the Client ID and Client Secret
  • Add the URL from before into the authorized URIS

Spotify Redirect

Headphones Setup

  • Retrieve your API key from your Headphones setting page

Headphones API

  • Afterwards, your settings page should look something like this

First Run

Screenshots

Select Modal

Select

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published