From: kaliko Date: Sun, 30 Aug 2015 07:40:00 +0000 (+0200) Subject: crop: disable cropping when queuing is X-Git-Tag: 0.14.0~6 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=43d74856c79bcbeb403638cf4637aa9679eab25c;p=mpd-sima.git crop: disable cropping when queuing is --- diff --git a/sima/plugins/internal/crop.py b/sima/plugins/internal/crop.py index fd0656c..f6ba32e 100644 --- a/sima/plugins/internal/crop.py +++ b/sima/plugins/internal/crop.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2013, 2014 Jack Kaliko +# Copyright (c) 2013, 2014, 2015 Jack Kaliko # # This file is part of sima # @@ -55,6 +55,9 @@ class Crop(Plugin): def callback_next_song(self): if not self.target: return + if not self._Plugin__daemon.enabled: + self.log.debug('Queueing disabled, not cropping') + return False player = self._Plugin__daemon.player if player.currentsong().pos > self.target: self.log.debug('cropping playlist')