Page 1 of 1

Purge Incomplete on Empty Queue

Posted: August 24th, 2015, 9:27 am
by snetty
Is it possible to purge the incomplete download folder when the queue empties? I don't see a flag/switch for this, so I wonder if anybody has come up with a plugin/hook that will allow this?

Re: Purge Incomplete on Empty Queue

Posted: August 25th, 2015, 2:35 am
by shypike
The only option now is to write your own end-of-queue script that clears the incomplete folder.

Re: Purge Incomplete on Empty Queue

Posted: March 7th, 2016, 10:05 am
by snetty
wow, been a while since I posted this.

That's fine, but I can't find any information on end-of-queue hooks. I've looked through the config options and I don't find any entry that will trigger a script when the queue finishes/is empty, can somebody point me to the relevant documentation please.

Re: Purge Incomplete on Empty Queue

Posted: March 7th, 2016, 2:01 pm
by shypike
First you put the script in SABnzbd's scripting folder.
Then you can select the script in the pull down menu at the top right of the queue.

Re: Purge Incomplete on Empty Queue

Posted: March 8th, 2016, 2:57 am
by snetty
urgh, so obvious.. I was looking through the config

Re: Purge Incomplete on Empty Queue

Posted: March 8th, 2016, 7:40 am
by shypike
The UI isn't a champion of consistency :)
The idea behind this particular choice was that you do this once.
BTW: the setting will not be permanent, unless you enable the option Config->Special->queue_complete_pers

Re: Purge Incomplete on Empty Queue

Posted: March 8th, 2016, 7:47 am
by snetty
yes, I discovered that in my searching yesterday, I'd seen that option somewhere and spent the better part of 30 minutes searching for it again, thanks for telling me where to find it :)