Properly set MPD filename if no title

This commit is contained in:
Robin McCorkell 2016-04-01 13:07:49 +01:00
parent ad2f08e89b
commit e3194147fa

View File

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