X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fplugins%2Finternal%2Fcrop.py;h=2ecbfc10a61edc94eaeb40ae902afa321dd0bb1c;hb=4240fefd9d393365932ff04c063cb31fc5dce85c;hp=a38b45df2128e7906cc953204c24d7f180fb999a;hpb=8ce90ac30d1daa9bcf2ced0aa06c8c59302f71ca;p=mpd-sima.git diff --git a/sima/plugins/internal/crop.py b/sima/plugins/internal/crop.py index a38b45d..2ecbfc1 100644 --- a/sima/plugins/internal/crop.py +++ b/sima/plugins/internal/crop.py @@ -29,12 +29,13 @@ class Crop(Plugin): else: self.target = int(target) - def callback_playlist(self): + def callback_next_song(self): 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()