golang spotify client
Go to file
abs3nt 8f7339f6d1 license 2023-01-15 13:19:26 -08:00
assets webm 2023-01-14 13:24:52 -08:00
src now playing 2023-01-15 12:35:49 -08:00
.drone.yml ci 2023-01-14 15:50:41 -08:00
.gitignore stuff 2023-01-06 23:42:00 -08:00
LICENSE license 2023-01-15 13:19:26 -08:00
Makefile readme 2023-01-09 18:09:16 -08:00
README.md r 2023-01-15 04:57:06 -08:00
go.mod artists and albums 2023-01-12 18:48:41 -08:00
go.sum artists and albums 2023-01-12 18:48:41 -08:00
main.go slow 2023-01-13 22:27:38 -08:00

README.md

IF YOU ARE ON GITHUB.COM GO HERE INSTEAD: https://gitea.asdf.cafe/abs3nt/gospt :)

If you open an issue or PR on github I won't see it please use gitea. Register on asdf and open your PRs there

This project is still under heavy development and some things might not work or not work as intended. Don't hesitate to open an issue to let me know.

Project Discord: Join Here

picture video

to install:

yay -S gospt

or to build from source by pulling and building the binary

git clone https://gitea.asdf.cafe/abs3nt/gospt

cd gospt

make build then

sudo make install

go here https://developer.spotify.com/dashboard/applications to make a spotify application. you will need a client ID and a client secret. Set your redirect uri like this:

http://localhost:8888/callback

add your information to ~/.config/gospt/client.yml like this

client_id: "idgoeshere"
client_secret: "secretgoeshere"
port: "8888"

if you dont want to store your secret in the file in plaintext you can use a command to retreive it:

client_secret_cmd: "secret spotify_secret"

you should have either client_secret or client_secret_cmd

then run

gospt

you will be asked to login, you will only have to do this the first time. After login you will be asked to select your default device, this will also only happen once. To reset your device run gospot setdevice

To use the custom radio feature:

gospt radio

or hit ctrl+r on any track in the TUI. This will start an extended radio. To replenish the current radio run gospt refillradio and all the songs already listened will be removed and that number of new recomendations will be added.

This radio uses slightly different logic than the standard spotify radio to give a longer playlist and more recomendation. With a cronjob you can schedule refill to run to have an infinite and morphing radio station.

To view help:

gospt --help

Very open to contributations feel free to open a PR