acaloiaro / di-tui

A simple terminal UI player for di.fm
BSD 2-Clause "Simplified" License
41 stars 4 forks source link

unknown flag: --network #26

Open kenrtx opened 2 weeks ago

kenrtx commented 2 weeks ago

I have my key setup in the config and it works but whenever I try to use the network flag it says it is unknown.

❯ ./go/bin/di-tui --network jazzradio unknown flag: --network Usage of ./go/bin/di-tui: --password string your di.fm password --username string your di.fm username unknown flag: --network

All I have in my config is token and album art. I'm curious what I might be doing wrong?

acaloiaro commented 2 weeks ago

Wow, thanks for catching this. Version 1.10.0 was waiting in Draft mode to be published as the latest release.

When you upgrade to 1.10.0, you should be all set!

kenrtx commented 1 week ago

I am running into the same issue. I installed it via go install and made sure I deleted it before reinstalling. I can't tell what version it is though since there is no -v flag. Am I typing it properly with di-tui --network jazzradio?

acaloiaro commented 1 week ago

Yeah sorry about the no -v flag. This project started as me building something for myself, and was surprised that people found and used it.

With that said, head over to the releases (https://github.com/acaloiaro/di-tui/releases/tag/1.10.0) section and download the correct build for your platform. Whatever version you're currently running is not 1.10.0.

The command and args you provided above is correct for playing jazzradio.

kenrtx commented 1 week ago

It's a great client. So much faster than the clunky web UI so thank you for sharing it!

Still have the same issue. I think the problem is the packages in the 1.10.0 release are from May 5th which seems to be 1.91 and the source is from 2 weeks ago which was 1.92.

acaloiaro commented 1 week ago

I just downloaded di-tui_1.10.0_Linux_x86_64.tar.gz from the releases page and it contains version 1.10.0, with the --network switch.

Which package are you downloading?

kenrtx commented 1 week ago

I installed it with an arch PKGBUILD.

pkgname=di-tui pkgver=1.10.0 pkgrel=1 pkgdesc='A simple terminal UI player for di.fm Premium' url='https://github.com/acaloiaro/di-tui' license=('BSD') depends=('pulseaudio') makedepends=('go') arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') source=("https://github.com/acaloiaro/di-tui/archive/refs/tags/${pkgver}.tar.gz")

But downloading the di-tui_1.10.0_Linux_x86_64.tar.gz seems to work. Not sure why the other methods didn't. Just happy it works now. It would be cool if you could play the playlists in addition to the stations. Guessing that is a limitation with DI?