Many of us have grown fond of the Volumio music player. Besides the option to choose from a huge number of web radio stations, there is sometimes a need to add your own web stream source. This is easy to do via the UI interface in the "My Web Radios" section. It often happens that the new source does not provide the web radio image in the required PNG or JPG format, but often in WEBP and similar formats, which the Volumio system cannot parse, and the default Volumio icon is displayed.
The solution is simple. You need to connect via SSH to the Volumio system and modify the contents of the files in the /data/favourites folder. This folder contains the files favourites, my-web-radio, and radio-favourites. The names make it clear what kind of information they probably contain. The file format is JSON. You can verify this in the SSH console with the command: cat /data/favourites/my-web-radio | python3 -m json.tool.
If the output is error-free, the formatted output looks something like this. Example of a record with a missing radio icon:[{"service": "webradio","name": "Ceskoslovenske Radio","uri": "https://stream.zeno.fm/3t8uknzr5s8uv",}]
Open the file in a text editor, such as nano, and add a line in the format:"albumart": "URL/your_picture.png" with a link to the image you want to be displayed when playing the radio station. The image should be no larger than 1000px x 1000px, with an optimal size of 500px x 500px or smaller, and the image format should be PNG or JPG. The image must be accessible via the HTTP or HTTPS protocol.
The output of the command cat /data/favourites/my-web-radio | python3 -m json.tool in the SSH console should look something like this:[{"service": "webradio","name": "Ceskoslovenske Radio","uri": "https://stream.zeno.fm/3t8uknzr5s8uv","albumart": "https://dedeideas.eu/ceskoslovenske_radio.png"}]
Now the icon (fanart) for your station will display correctly.
In this way, it is possible to add or change the icons for any web radio station in the "My Web Radio" or "Favourites" section by simply editing the files. my-web-radio or radio-favourites .