plintx / mopidy-radionet

Mopidy extension for playing music from radio.net http://www.mopidy.com
Apache License 2.0
11 stars 5 forks source link

Please update README ! #10

Open powertim opened 3 years ago

powertim commented 3 years ago

Hi,

On my first try to use your extension I was facing error :

Jan 19 21:16:45 mopidy1 mopidy[27669]: INFO     [MainThread] mopidy.__main__ Disabled extensions: radionet
Jan 19 21:16:45 mopidy1 mopidy[27669]: WARNING  [MainThread] mopidy.__main__ Found radionet configuration errors. The extension has been automatically disable
Jan 19 21:16:45 mopidy1 mopidy[27669]: WARNING  [MainThread] mopidy.__main__   radionet/favorite_stations must be set.

Configuration section in the README is not referencing the favorite_stations key.

I was able to fix it by myself but it could be useful to not frighten people on first run ;-)

Thanks,

Tim.

tetricky commented 3 years ago

Can I ask how you solved it?

I'm new to mopidy, have this problem, it's not referenced in the documentation, and I don't know how to solve it.

Any advice appreciated.

gemolnar79 commented 3 years ago

Hi,

My config in /etc/mopidy/mopidy.conf:

[radionet] enabled = true min_bitrate = 128 favorite_stations = 'x'

I hope this helps. :)

tetricky commented 3 years ago

It helps a lot. I had no idea of the format. I've done a bit of experimenting. This may have been obvious to everyone else, but it definitely wasn't to me!

If you go to the radio.net website. Search for stations that are your preference, and then put these exact names in the config, in the following format, then you will get an alphabetically sorted list of these stations, in your Radionet Favourites. You can append to the list in mopidy.conf, restart the service, and the favourites will repopulate as per your new list

favorite_stations = 'BBC Radio 1','BBC Radio 1Xtra','BBC Radio 2','BBC Radio 3','BBC Radio 4','BBC Radio 4 Long Wave','BBC Radio 4 Extra','BBC Radio 5 live','BBC Radio 6 Music','BBC World Service'

If you inspect current config with

sudo mopidyctl config

you will see that the radionet config section looks like this:

[radionet] enabled = true language = net min_bitrate = 128 favorite_stations = 'BBC Radio 1' 'BBC Radio 1Xtra' 'BBC Radio 2' 'BBC Radio 3' 'BBC Radio 4' 'BBC Radio 4 Long Wave' 'BBC Radio 4 Extra' 'BBC Radio 5 live' 'BBC Radio 6 Music' 'BBC World Service'

As I say, apologies if this is obvious. Just leaving here for entry level newbies such as myself.

Thank you very much for the help. Your key unlocked it for me.

TrollDecker commented 3 years ago

I've found that you need to get the station's "slug" (the bit at the end of the address for each station, I think that's the name but memory hazy), and place that in the config.

So, for BBC Radio 1, that would be https://www.radio.net/s/bbcradio1, and the slug would be 'bbcradio1', which you would need to place in your favorite_stations list.

That... was a headache and a half getting to the bottom of. :raised_eyebrow: