[modules/mpd] Removed unneeded if statement

This commit is contained in:
max-kov 2017-10-20 16:39:48 +01:00
parent 3c0d53831b
commit 36e7cc8dbb

View file

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