From e3194147fa572e97fe0dda96e545f7e0cc9423ca Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Fri, 1 Apr 2016 13:07:49 +0100 Subject: [PATCH] Properly set MPD filename if no title --- i3pystatus/mpd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/mpd.py b/i3pystatus/mpd.py index 5d9ffd7..2f3ef4a 100644 --- a/i3pystatus/mpd.py +++ b/i3pystatus/mpd.py @@ -114,7 +114,7 @@ class MPD(IntervalModule): "bitrate": int(status.get("bitrate", 0)), } - if not fdict["title"] and "filename" in fdict: + if not fdict["title"]: fdict["filename"] = '.'.join( basename(currentsong["file"]).split('.')[:-1]) else: