Merge pull request #194 from max-kov/master

[modules/mpd] Fixed song duration parse bug
This commit is contained in:
tobi-wan-kenobi 2017-10-21 08:21:00 +02:00 committed by GitHub
commit a40dde5812

View file

@ -86,7 +86,7 @@ class Module(bumblebee.engine.Module):
self._status = "paused" self._status = "paused"
if line.startswith("["): if line.startswith("["):
timer = line.split(" ")[1] timer = line.split()[2]
position = timer.split("/")[0] position = timer.split("/")[0]
dur = timer.split("/")[1] dur = timer.split("/")[1]
duration = dur.split(" ")[0] duration = dur.split(" ")[0]