2020-03-01 19:59:28 +00:00
# di-tui
2020-03-06 23:41:34 +00:00
A simple terminal UI player for [di.fm Premium ](http://di.fm )
2020-03-02 01:57:23 +00:00
2020-05-09 18:10:41 +00:00

2020-02-24 02:47:42 +00:00
# Caveat
2020-05-09 14:30:23 +00:00
This player is a somewhat crude proof-of-concept that was written over the course of ~8 hours and slightly improved upon since. There are not doubt bugs. Help me improve it if you find it useful.
2020-02-24 02:47:42 +00:00
# Install
2020-03-01 22:58:27 +00:00
This app has been tested on Linux and Mac, but not Windows. However, it should also build on Windows.
2020-11-08 18:22:32 +00:00
## Dependencies
### Linux
`apt install libasound2-dev`
2020-04-11 15:23:36 +00:00
## Binary Releases
There are binary builds available in [releases ](https://github.com/acaloiaro/di-tui/releases ).
2020-03-01 22:56:36 +00:00
## With `go get`
2020-03-01 19:59:28 +00:00
`go get -u github.com/acaloiaro/di-tui`
2020-02-24 02:47:42 +00:00
2020-03-01 22:56:36 +00:00
If `$GOPATH/bin` is not on your `$PATH` (modify accordingly for ZSH users `~/.zshrc` )
2020-03-01 22:54:39 +00:00
```
echo "export PATH=$PATH:$GOPATH/bin" >> ~/.bashrc
source ~/.bashrc
```
If your `$GOPATH` is not set, see https://github.com/golang/go/wiki/SettingGOPATH
2020-02-24 02:47:42 +00:00
# Authenticate
2020-09-25 15:05:36 +00:00
There are two authentication options
- Enter your username and password directly into `di-tui`
- If you're justifiably uncomfortable with entering your username/password into this application, copy your "Listen Key" from (https://www.di.fm/settings) and create the following file:
## ~/.config/di-tui/config.yml
```yml
token: < YOUR LISTEN KEY >
```
2020-02-24 02:47:42 +00:00
# Run
2020-03-01 19:59:28 +00:00
`di-tui`