Merge pull request #194 from max-kov/master
[modules/mpd] Fixed song duration parse bug
This commit is contained in:
commit
a40dde5812
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class Module(bumblebee.engine.Module):
|
|||
self._status = "paused"
|
||||
|
||||
if line.startswith("["):
|
||||
timer = line.split(" ")[1]
|
||||
timer = line.split()[2]
|
||||
position = timer.split("/")[0]
|
||||
dur = timer.split("/")[1]
|
||||
duration = dur.split(" ")[0]
|
||||
|
|
Loading…
Reference in a new issue