Purge Incomplete on Empty Queue

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
snetty
Newbie
Newbie
Posts: 4
Joined: August 24th, 2015, 9:17 am

Purge Incomplete on Empty Queue

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Purge Incomplete on Empty Queue

Post by shypike »

The only option now is to write your own end-of-queue script that clears the incomplete folder.
snetty
Newbie
Newbie
Posts: 4
Joined: August 24th, 2015, 9:17 am

Re: Purge Incomplete on Empty Queue

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Purge Incomplete on Empty Queue

Post 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.
snetty
Newbie
Newbie
Posts: 4
Joined: August 24th, 2015, 9:17 am

Re: Purge Incomplete on Empty Queue

Post by snetty »

urgh, so obvious.. I was looking through the config
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Purge Incomplete on Empty Queue

Post 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
snetty
Newbie
Newbie
Posts: 4
Joined: August 24th, 2015, 9:17 am

Re: Purge Incomplete on Empty Queue

Post 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 :)
Post Reply