From: kaliko Date: Sun, 2 Feb 2014 15:23:38 +0000 (+0100) Subject: Improved debug message when cropping X-Git-Tag: mpd-sima/0.12.0pr3~14 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=331b1c5fe8f997a59eb0662e1dd29c63cfd7c5d6;p=mpd-sima.git Improved debug message when cropping --- 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()