From 43d74856c79bcbeb403638cf4637aa9679eab25c Mon Sep 17 00:00:00 2001 From: kaliko Date: Sun, 30 Aug 2015 09:40:00 +0200 Subject: [PATCH] crop: disable cropping when queuing is --- sima/plugins/internal/crop.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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') -- 2.39.5