Hi all.
I'd like to be able to configure different clean up lists for different categories. AFAIK there is currently only the global clean up list option at config > general > tuning.
I want to be able to remove .nfo files for my 'movies' category but not for other categories.
All suggestions most welcome.
Thanks.
[RESOLVED] Category specific cleanup options
Forum rules
Help us help you:
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.
[RESOLVED] Category specific cleanup options
Last edited by kronich on March 25th, 2015, 5:02 am, edited 1 time in total.
Re: Category specific cleanup options
Use user scripts, you can select one per category.
The basic one is this:
More info: http://wiki.sabnzbd.org/user-scripts
The basic one is this:
Code: Select all
@echo off
cd /d %1
del *.nfo
Re: Category specific cleanup options
Thank you very much.
I'll give that a try.
I've never used the user scripts but I should be able to get that to do what I need.
I'll give that a try.
I've never used the user scripts but I should be able to get that to do what I need.
Re: Category specific cleanup options
OK, first attempt failed, I must be doing something wrong.
I'm on Windows 7 x64 running v0.7.20.
Config > folders > User folders > Post-Processing Scripts Folder = C:\Program Files (x86)\Comms\SABnzbd\scripts
That folder contains "del_nfos.cmd"
Config > categories has the following category defined:
Category=movies
Priority=Default
Processing=Delete
Script=del_nfos.cmd
Folder/Path=S:\Shared Area\Movies
Groups / Indexer tags=Movies.*
Windows > System Properties > Advanced > Environment Variables >System Variables contains:
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
Nothing relevent found in the sabnzbd log.
Any ideas?
I'm on Windows 7 x64 running v0.7.20.
Config > folders > User folders > Post-Processing Scripts Folder = C:\Program Files (x86)\Comms\SABnzbd\scripts
That folder contains "del_nfos.cmd"
Code: Select all
@echo off
cd /d %1
del *.nfoCategory=movies
Priority=Default
Processing=Delete
Script=del_nfos.cmd
Folder/Path=S:\Shared Area\Movies
Groups / Indexer tags=Movies.*
Windows > System Properties > Advanced > Environment Variables >System Variables contains:
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
Nothing relevent found in the sabnzbd log.
Any ideas?
Re: Category specific cleanup options
Dumb question maybe, do you give your NZB the category movie?
If you do, do you see the script name appear in the queue entry of the NZB?
When you turn on "Debug" logging on the status page, you should see more info about the script's running.
(if running).
If you do, do you see the script name appear in the queue entry of the NZB?
When you turn on "Debug" logging on the status page, you should see more info about the script's running.
(if running).
Re: Category specific cleanup options
It's working now.
I just hadn't added any new jobs after saving the changes.
Adding the post processing script to the category didn't apply to jobs that were already enqueued.
Now that some new jobs have run through, I can see it's working.
Thanks again for your help.
I just hadn't added any new jobs after saving the changes.
Adding the post processing script to the category didn't apply to jobs that were already enqueued.
Now that some new jobs have run through, I can see it's working.
Thanks again for your help.

