MyWebRadio - more fields in form

It would be interesting if more fields might be provided in form when adding new “My Web Radio”. That is 'bitrate", stream protocol, country/location, radio logo, user notes, etc.

This might be a simple implementation that would must improve user webradios and personal notes.

Thx, Xant

1 Like

Hi, it is not a precise answer to this question, but it is linked, so I prefer to not oppen a new subject about IP radio.
I found it works quite well currently, but some IP link could be bad. And your logos database is not so accuracy.
Do you know “Radioplayer” ? It is a project in which official radio station participate. So IP links are sure and logos are uptodated.
A good idea could be to implement it on Raspberry and in Volumio

Nico et al

There are diverse “projects” or websites trying to “communize” WebRadio services. Unfortunately, I had not find one that yet tops DIY. And therefore, the “more fields in form” suggestion for Volumio.

Some sites, or references:

As a Windows Player, MusicBee has some extra capabilities… which is a better DIY WebRadio library/capabilities (including more fields: stream URL, name, homepage, bitrate, format, genre, folder, description, logo, etc).

Roon has an “open database” for WebRadio community base collaboration (again, with more data/fields).

I do believe that adding fields, and improving WebRadio DIY database, would be a Great improvement to Volumio.

Xant

I recently added a new webradio favourite and was rather surprised to see how minimal the implementation is. You can’t add any metadata (album art, link to the host etc) it’s a shame considering the code base should support it easily, but it was probably just never implemented…

Ashthespy

Your comments are correct… NO Metadata as Volumio MyWebRadio capabilities are minimal and been a while since I’m raising this flag. I consider this not just “an implementation”, but a MUST have for Volumio.

Here is a snapshot from MusicBee regarding WebRadio input:

image

Another feature that would be “good to have”, is that some WebRadios send information for what is “now playing” - Music Title, Artist, etc.

On top of that, there is some other annoyances regarding Volumio MyWebRadio database implementation. As for example, if you Edit the database “card” for a specific WebRadio you already placed-in, it does NOT Edit… but creates a new “card”, requiring refresh, and deletion of the “old one”.

Xant

As a first step – this is how simple it can be!

  1. Edit the list to add the icon as a url
# Freshly added fav
volumio@volumio:~$ jq < /data/favourites/radio-favourites
[
  {
    "service": "webradio",
    "uri": "http://opml.radiotime.com/Tune.ashx?id=s255597",
    "title": "80s80s Radio",
    "icon": "fa-microphone"
  }
]

# Add the right icon 
volumio@volumio:~$ jq '.[].icon="http://cdn-radiotime-logos.tunein.com/s255597q.png"' < /data/favourites/radio-favourites
[
  {
    "service": "webradio",
    "uri": "http://opml.radiotime.com/Tune.ashx?id=s255597",
    "title": "80s80s Radio",
    "icon": "http://cdn-radiotime-logos.tunein.com/s255597q.png"
  }
]
  1. Patch webradio plugin
diff --git a/app/plugins/music_service/webradio/index.js b/app/plugins/music_service/webradio/index.js
index 96ebb4b..0f1a055 100755
--- a/app/plugins/music_service/webradio/index.js
+++ b/app/plugins/music_service/webradio/index.js
@@ -745,6 +745,7 @@ ControllerWebradio.prototype.listMyWebRadio = function (uri) {

     for (var i in data) {
       var ithdata = data[i];
       var song = {
         service: 'webradio',
         type: 'mywebradio',
@@ -752,7 +753,8 @@ ControllerWebradio.prototype.listMyWebRadio = function (uri) {
         album: '',
         title: ithdata.name,
         uri: ithdata.uri,
-        icon: 'fa fa-microphone'
+        icon: ithdata.icon || 'fa fa-microphone',
+        albumart: ithdata.albumart || ithdata.icon  || null
       };

       response.navigation.lists[0].items.push(song);
@@ -808,7 +810,8 @@ ControllerWebradio.prototype.listRadioFavourites = function (uri) {
         title: ithdata.title,
         // artist: ithdata.artist,
         // album: ithdata.album,
-        icon: 'fa fa-microphone',
+        icon: ithdata.icon || 'fa fa-microphone',
+        albumart: ithdata.albumart || ithdata.icon  || null,
         uri: ithdata.uri
       };
  1. Profit
    image
1 Like

Hey Ash

Innnnnteresting. I see…

Let’s also “see” if Volumio Developers get the message, as there are more to be done and Metadata. The flag now been waived…

best, Xant

@balbuze entered this/similar issue almost a year ago

https://github.com/volumio/Volumio2/issues/2014

Interesting as to keep the talk going, but mod seems quite specific (to RadioParadise plugin).

As suggestion to Volumio Developers, we want to see more WebRadio database functionality implemented.

best, Xant

Not really just a Radio Paradise issue/solution
Track info and covers works nicely in HifiberryOs , would be nice to have that in Volumio too
(At least a possibility to change the webradion icon would be nice)