Merge pull request #372 from ncoop/mpd-KeyError-fix

MPD KeyError fix at end of playback
This commit is contained in:
enkore 2016-04-26 11:03:52 +02:00
commit ba0b6bc0f1

View File

@ -114,7 +114,7 @@ class MPD(IntervalModule):
"bitrate": int(status.get("bitrate", 0)),
}
if not fdict["title"]:
if not fdict["title"] and "file" in currentsong:
fdict["filename"] = '.'.join(
basename(currentsong["file"]).split('.')[:-1])
else: