ICY metadata charset

General Discussion about MPD – anything that doesn't fit in the other MPD forums.
Post Reply
Atair
Posts: 4
Joined: August 26th, 2020, 10:37 am

ICY metadata charset

Post by Atair »

I am listening to internet radio stations using Moode and are currently collaborating in their version 7.0.0.

I noticed that for some radio stations the meta data for the current title is not send as UTF-8, but ISO-8859-1. Appending the URL with #charset=ISO-8859-1 does indeed help as described in the mpd docs somewhere.

The default charset for mp3 streams is ISO-8859-1 since a while.

In Icecast 2.3.2 was introduced a charset parameter with the http meta data request. As far as I understood the docs the meta data are then converted to the requested charset.

Could you please look into this issue?
max
Forum team
Posts: 1254
Joined: January 15th, 2013, 3:43 pm

Re: ICY metadata charset

Post by max »

This is not the right place to report bugs. https://github.com/MusicPlayerDaemon/MPD/issues/ is.
Ameisenwespe
Posts: 1
Joined: December 2nd, 2020, 4:31 pm

Re: ICY metadata charset

Post by Ameisenwespe »

Hello, I am currently in the same situation. But I am not sure if it is an issue or on my side. I would like to see your suggestion.

I try to get 'Umlauts(äöü)' in title and name of a audiostream:
Machine is a RPi3A+ Raspberry Pi OS Lite (no GUI)

With PuTTY set to ISO-8859-1:

Code: Select all

pi@raspberrypi:~ $ ffmpeg -i http://stream.srg-ssr.ch/m/drsmw/mp3_128

Input #0, mp3, from 'http://stream.srg-ssr.ch/m/drsmw/mp3_128':
  Metadata:
    icy-br          : 128
    icy-description : Radio SRF Musikwelle - Die schönsten Melodien für Sie -
    icy-genre       : National Music
    icy-name        : SRF Musikwelle
    icy-pub         : 0
    icy-url         : http://srfmusikwelle.ch
    StreamTitle     : Radio SRF Musikwelle - Die schönsten Melodien für Sie - srfmusikwelle.ch - studio@srfmusikwelle.ch
Radio SRF Musikwelle - Die schönsten Melodien für Sie - srfmusikwelle.ch - studio@srfmusikwelle.ch

With PuTTY set to ISO-8859-1:
mpd.conf: filesystem_charset "ISO-8859-1"
raspi-config Local de_CH ISO-8859-1, de_DE ISO-8859-1

Code: Select all

pi@raspberrypi:~ $ mpc add http://stream.srg-ssr.ch/m/drsmw/mp3_128#charset=ISO-8859-1
pi@raspberrypi:~ $ mpc play
http://stream.srg-ssr.ch/m/drsmw/mp3_128#charset=ISO-8859-1
[playing] #1/1   0:00/0:00 (0%)
volume: 48%   repeat: off   random: off   single: off   consume: off
pi@raspberrypi:~ $ mpc
SRF Musikwelle: Radio SRF Musikwelle - Die sch?nsten Melodien f?r Sie - srfmusikwelle.ch - studio@srfmusikwelle.ch
[playing] #1/1   6:22/0:00 (0%)
volume: 48%   repeat: off   random: off   single: off   consume: off
pi@raspberrypi:~ $ mpc --format "[%title%]" | head -n 1
Radio SRF Musikwelle - Die sch?nsten Melodien f?r Sie - srfmusikwelle.ch - studio@srfmusikwelle.ch
SRF Musikwelle: Radio SRF Musikwelle - Die sch?nsten Melodien f?r Sie - srfmusikwelle.ch - studio@srfmusikwelle.ch

Am I doing something wrong? Did I missed something? Is it a issue?
max
Forum team
Posts: 1254
Joined: January 15th, 2013, 3:43 pm

Re: ICY metadata charset

Post by max »

Post Reply