+function make_status_mpd_state_known(symbol, \
+ currently_playing, name, title, file\
+) {
+ name = db["mpd_song_curr_name"]
+ title = db["mpd_song_curr_title:"]
+ file = db["mpd_song_curr_file"]
+
+ if (name) {
+ currently_playing = name
+ } else if (title) {
+ currently_playing = title
+ } else if (file) {
+ last = split(file, parts, "/")
+ currently_playing = parts[last]
+ } else {
+ currently_playing = ""
+ }