]> kaliko git repositories - mpd-sima.git/commitdiff
Improved debug message when cropping
authorkaliko <efrim@azylum.org>
Sun, 2 Feb 2014 15:23:38 +0000 (16:23 +0100)
committerkaliko <efrim@azylum.org>
Sun, 2 Feb 2014 15:23:38 +0000 (16:23 +0100)
sima/plugins/internal/crop.py

index a38b45df2128e7906cc953204c24d7f180fb999a..5ac8f0f84d6693e1e19c5cebf315a1c302842571 100644 (file)
@@ -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()