[modules/mpd] Removed unneeded if statement
This commit is contained in:
parent
3c0d53831b
commit
36e7cc8dbb
1 changed files with 1 additions and 4 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue