class Crop(Plugin):
"""
Crop playlist on next track
+ kinda MPD's consume
"""
def callback_playlist(self):
player = self._Plugin__daemon.player
target_lengh = 10
while player.currentsong().pos > target_lengh:
+ self.log.debug('cropping playlist')
player.remove()