1 # -*- coding: utf-8 -*-
5 # standart library import
6 #from select import select
8 # third parties componants
11 from ..lib.plugin import Plugin
15 Crop playlist on next track
18 def callback_playlist(self):
19 player = self._Plugin__daemon.player
21 while player.currentsong().pos > target_lengh:
22 self.log.debug('cropping playlist')
27 # vim: ai ts=4 sw=4 sts=4 expandtab