2023-03-09 20:06:23 +00:00
IF YOU ARE ON GITHUB.COM GO HERE INSTEAD: https://git.asdf.cafe/abs3nt/gospt :)
2023-01-08 05:10:00 +00:00
2023-03-09 20:06:23 +00:00
If you open an issue or PR on github I won't see it please use git. Register on asdf and open your PRs there
2023-01-08 05:10:00 +00:00
2023-01-10 02:09:16 +00:00
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.
2023-01-08 05:11:39 +00:00
---
2023-01-21 00:20:29 +00:00
[![status-badge ](https://ci.asdf.cafe/api/badges/abs3nt/gospt/status.svg )](https://ci.asdf.cafe/abs3nt/gospt)
2023-01-17 06:51:52 +00:00
![video ](/assets/gospt.gif )
2023-01-14 21:08:12 +00:00
2023-01-19 21:00:43 +00:00
# To install (with a package manager):
2023-01-07 16:24:33 +00:00
2023-01-19 21:00:43 +00:00
## Archlinux ([AUR])
2023-03-08 03:06:48 +00:00
```yay -S gospt```
or
```yay -S gospt-git```
2023-01-10 07:42:14 +00:00
2023-01-19 21:00:43 +00:00
## NetBSD ([Official repositories])
```pkgin install gospt```
# To build from source by pulling and building the binary
2023-01-10 07:39:44 +00:00
2023-03-09 20:06:23 +00:00
```git clone https://git.asdf.cafe/abs3nt/gospt```
2023-01-10 07:39:44 +00:00
```cd gospt```
2023-03-08 03:06:48 +00:00
2023-01-19 21:06:25 +00:00
```make build & & sudo make install```
2023-01-07 16:24:33 +00:00
2023-01-19 21:00:43 +00:00
[AUR]: https://aur.archlinux.org/packages/gospt
2023-01-30 14:13:55 +00:00
[Official repositories]: http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/audio/gospt/
2023-01-19 21:00:43 +00:00
# Configuration
2023-01-14 20:55:03 +00:00
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:
2023-01-14 20:53:36 +00:00
```http://localhost:8888/callback```
2023-01-12 20:21:24 +00:00
add your information to ~/.config/gospt/client.yml like this
2023-01-07 16:24:33 +00:00
```
2023-01-11 02:01:40 +00:00
client_id: "idgoeshere"
client_secret: "secretgoeshere"
port: "8888"
2023-01-10 07:39:44 +00:00
```
2023-01-11 02:01:40 +00:00
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
2023-01-07 16:24:33 +00:00
2023-01-10 07:08:20 +00:00
then run
2023-01-07 16:24:33 +00:00
2023-01-09 07:02:35 +00:00
```gospt```
2023-01-07 16:24:33 +00:00
2023-01-09 07:02:35 +00:00
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```
2023-01-07 16:24:33 +00:00
2023-01-16 20:36:42 +00:00
helpful keybinds are shown in the bottom of the screen, hit ? to see all of them
2023-01-09 07:11:14 +00:00
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.
2023-01-10 03:49:04 +00:00
To view help:
```gospt --help```
2023-01-10 09:21:05 +00:00
Very open to contributations feel free to open a PR
2023-01-17 04:39:03 +00:00
2023-03-09 20:06:23 +00:00
[tmux plugin ](https://git.asdf.cafe/abs3nt/tmux-gospt )
2023-01-20 16:29:23 +00:00
2023-03-09 20:06:23 +00:00
[wiki ](https://git.asdf.cafe/abs3nt/gospt/wiki )