spotify-connect icon indicating copy to clipboard operation
spotify-connect copied to clipboard

Allow playlist URLs to be passed as an argument to be played

Open farrerz opened this issue 4 years ago • 3 comments

Add the ability to specify a playlist url (such as https://open.spotify.com/playlist/37i9dQZEVXcVX6t8dPiGLW) when playing a playlist, this way people can play from a public playlist that isn't their list. I would do this myself, since all that's required is to bypass the playlist lookup/name matching and pass the argument into the Spotify lib (if it starts with https:), but I do not have the config files to run this myself and haven't gone through to work backwards to find all of the config/env values

farrerz avatar Sep 28 '20 19:09 farrerz

i personally don't have the time to work on this project anymore. here's a config template if you (or anyone else) wants to pick it up, perfect for a hacktoberfest PR :^)

{
  "BOT_TOKEN": "",
  "BOT_DEFAULT_PREFIX": "s;",
  "BOT_SECRET": "",
  "BOT_OWNER_ID": "284122164582416385",

  "WEB_PORT": 8081,
  "WEB_DOMAIN": "https://spotify-connect.aeth.dev",
  "WEB_SECRET": "",

  "SPOTIFY_ID": "",
  "SPOTIFY_SECRET": ""
}

you can set up the symlinked modules (@sc/*) with the following set of commands:

mkdir ./node_modules/@sc
cd ./node_modules/@sc
ln -sf ../../src/lib/* .

aetheryx avatar Sep 29 '20 01:09 aetheryx

Is the callback to your website required for this to work? If the functionality (minus the redirect page message) works without that, I can make that work. I assumed that it was required though, which probably wouldn't work without the correct secret key

farrerz avatar Sep 29 '20 15:09 farrerz

You can set the callback URL to your own website or localhost for testing.

Stylite avatar Sep 29 '20 15:09 Stylite