core icon indicating copy to clipboard operation
core copied to clipboard

Track info containing apostrophe are cut off

Open maaso opened this issue 3 months ago • 2 comments

Artist names or song titles containing apostrophe (') are cut off at the apostrophe.

Ex. Yazoo's track "Don't Go" will display as "Don".

This is probably because the apostrophe is mistakenly taken as the end of the string?

maaso avatar Aug 18 '26 09:08 maaso

Good catch — the apostrophe really was being taken as the end of the string.

Internet radio sends track info as ICY metadata: StreamTitle='Yazoo - Don't Go';. The value ends at '; — quote and semicolon — but our parser stopped at the first bare quote, so it kept Yazoo - Don and then split that into artist Yazoo / title Don.

Fixed: the parser now stops at the real terminator, with a fallback for stations that omit the trailing ;. The same pass fixed the other direction — the ICY block we serve to renderers (Sonos, DLNA) stripped every apostrophe, so those showed Dont Go; they now keep it.

Regression tests cover Don't Go, Guns N' Roses - Sweet Child O' Mine, a missing trailing semicolon, and a semicolon inside the title.

One thing to confirm: this is the radio/ICY path. If you also saw it on Spotify, the local library or another service, let me know which — that is a different code path and I would chase it separately.

rudyberends avatar Aug 29 '26 09:08 rudyberends

You are correct, this only affected the radio path. I've just checked Spotify and that displays correctly. I don't use the local library or other services, so it must have been the radio.

Thanks for the fix!

maaso avatar Sep 02 '26 07:09 maaso