jplitza / lightdm-dashboard

Dashboard login screen for LightDM (with Webkit greeter)
BSD 2-Clause "Simplified" License
9 stars 3 forks source link

Fix MPD status problem when playing web streams #5

Closed phyrog closed 10 years ago

phyrog commented 10 years ago

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.

jplitza commented 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?

phyrog commented 10 years ago

Fail. Yep I somehow wrote Python... I'll fix that