Merge pull request #355 from Xenopathic/master

Properly set MPD filename if no title
This commit is contained in:
enkore 2016-04-07 23:19:17 +02:00
commit d9f5950eaa

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: