commit 1adc7d59a27093f9b460d0e45f81e0c701fdd2f1
parent 9175edd1c94b5e8c63ed4a241288d738563e9114
Author: Alex Balgavy <alex@balgavy.eu>
Date: Wed, 12 May 2021 14:41:51 +0200
Update README
Diffstat:
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
@@ -2,9 +2,15 @@
Requires Ruby, and uses [mpv](https://mpv.io) as a backend.
The default radio channels are defined in the file [`/usr/local/etc/radio/urls`](./urls).
-They can be overridden by defining channels in the file `$HOME/.config/radio/urls`.
+They can be overridden by defining channels in the file `$HOME/.config/radio/urls`; if this file is present, `/usr/local/etc/radio/urls` is not read.
The file uses the standard conf syntax.
+Apart from manually-configured radio channels, `radio` supports:
+
+* [Radio Garden](http://radio.garden/) - listen to radio broadcasts from around the world
+* [Sounds of Earth](https://soundsofearth.eco/) - sounds of nature around the world
+* Playing music from Reddit subreddits (Spotify links aren't supported because they require authentication)
+
## Installation
* Homebrew: `brew install thezeroalpha/formulae/radio`
* Makefile: `make install`
diff --git a/radio b/radio
@@ -101,7 +101,7 @@ class SoundsOfEarth < Radio
require 'open-uri'
def initialize(_)
- channels = get_channels
+ channels = retrieve_channels
@channel = choose_from_list(channels.map { |c| c[:link] }, channels.map { |c| c[:name] }) while @channel.nil?
super()
rescue Interrupt