Merge pull request #372 from ncoop/mpd-KeyError-fix
MPD KeyError fix at end of playback
This commit is contained in:
commit
ba0b6bc0f1
@ -114,7 +114,7 @@ class MPD(IntervalModule):
|
|||||||
"bitrate": int(status.get("bitrate", 0)),
|
"bitrate": int(status.get("bitrate", 0)),
|
||||||
}
|
}
|
||||||
|
|
||||||
if not fdict["title"]:
|
if not fdict["title"] and "file" in currentsong:
|
||||||
fdict["filename"] = '.'.join(
|
fdict["filename"] = '.'.join(
|
||||||
basename(currentsong["file"]).split('.')[:-1])
|
basename(currentsong["file"]).split('.')[:-1])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user