AzuraCast/nowplaying

Artist and Title split in the wrong place when there is more than one hyphen

MarkWasley opened this issue · 0 comments

For a long time the track artist and track title have been split in the wrong place. Because the hyphen is being used as a delimiter to split the two, this has been causing a problem when there is more that one hyphen in $text.

For example, if I have a track named The Beatles - Yesterday - Live from The ABC Theatre, Blackpool, UK 1965, the artist will be set as The Beatles - Yesterday and the title will be set as Live from The ABC Theatre, Blackpool, UK 1965.

Icecast remote sources, including other AzuraCast stations, do not pass title and artist metadata to AzuraCast even if they are set on the original source, requiring the title that it does provide, to be split.

I will submit a pull request shortly to fix this.