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
19 def callback_playlist(self):
20 player = self._Plugin__daemon.player
22 while player.currentsong().pos > target_lengh:
23 self.log.debug('cropping playlist')
28 # vim: ai ts=4 sw=4 sts=4 expandtab