From 36e7cc8dbbffec961bfcc194b7deaf262577e524 Mon Sep 17 00:00:00 2001 From: max-kov Date: Fri, 20 Oct 2017 16:39:48 +0100 Subject: [PATCH] [modules/mpd] Removed unneeded if statement --- bumblebee/modules/mpd.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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]