Closed phyrog closed 10 years ago
It's news to me that JS has an "... if ... else ..." statement, AFAIK it is "...? ... : ...", and my experiments in Firefox confirm that:
> 1 if 0 else 2
SyntaxError: missing ; before statement
> 0? 1 : 2
2
Am I mistaken?
Fail. Yep I somehow wrote Python... I'll fix that
When playing a web stream that does not set the artist attribute via mpd, the mpd status is a flickering "Stopped" status. With this PR, the title of the stream is still shown when no artist is set.