class Crop(Plugin):
"""
Crop playlist on next track
- kinda MPD's consume
"""
def __init__(self, daemon):
super().__init__(daemon)
if player.currentsong().pos > self.target:
self.log.debug('cropping playlist')
while player.currentsong().pos > self.target:
- player.remove()
+ player.delete(0)
# VIM MODLINE