diff --git a/bumblebee/modules/mpd.py b/bumblebee/modules/mpd.py index 8a94296..f1c4d8e 100644 --- a/bumblebee/modules/mpd.py +++ b/bumblebee/modules/mpd.py @@ -86,10 +86,7 @@ class Module(bumblebee.engine.Module): self._status = "paused" if line.startswith("["): - if len(line.split(" ")) > 1: - timer = line.split(" ")[1] - else: - timer = line.split(" ")[1] + timer = line.split()[2] position = timer.split("/")[0] dur = timer.split("/")[1] duration = dur.split(" ")[0]