From 331b1c5fe8f997a59eb0662e1dd29c63cfd7c5d6 Mon Sep 17 00:00:00 2001 From: kaliko Date: Sun, 2 Feb 2014 16:23:38 +0100 Subject: [PATCH] Improved debug message when cropping --- sima/plugins/internal/crop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sima/plugins/internal/crop.py b/sima/plugins/internal/crop.py index a38b45d..5ac8f0f 100644 --- a/sima/plugins/internal/crop.py +++ b/sima/plugins/internal/crop.py @@ -33,8 +33,9 @@ class Crop(Plugin): if not self.target: return player = self._Plugin__daemon.player - while player.currentsong().pos > self.target: + if player.currentsong().pos > self.target: self.log.debug('cropping playlist') + while player.currentsong().pos > self.target: player.remove() -- 2.39.5