return []
tolookfor = self.player.playlist[-1].Artist
self.log.info('Looking for artist similar to "%s"', tolookfor)
- self.log.debug(repr(tolookfor))
+ self.log.debug('%r', tolookfor)
similar = self.ws_similar_artists(tolookfor)
if not similar:
self.log.info('Got nothing from %s!', self.ws.name)
"""
# standard library import
-#from select import select
# third parties components
# local import
from ...lib.plugin import Plugin
+
class Crop(Plugin):
"""
Crop playlist on next track
return
if not self.daemon.enabled:
self.log.debug('Queueing disabled, not cropping')
- return False
+ return
player = self.daemon.player
if player.currentsong().pos > self.target:
self.log.debug('cropping playlist')