Page 1 of 1

[RESOLVED] Category specific cleanup options

Posted: March 18th, 2015, 5:12 am
by kronich
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.

Re: Category specific cleanup options

Posted: March 18th, 2015, 5:42 am
by shypike
Use user scripts, you can select one per category.
The basic one is this:

Code: Select all

@echo off
cd /d %1
del *.nfo
More info: http://wiki.sabnzbd.org/user-scripts

Re: Category specific cleanup options

Posted: March 18th, 2015, 6:49 am
by kronich
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.

Re: Category specific cleanup options

Posted: March 18th, 2015, 7:14 am
by kronich
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"

Code: Select all

@echo off
cd /d %1
del *.nfo
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?

Re: Category specific cleanup options

Posted: March 18th, 2015, 8:53 am
by shypike
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).

Re: Category specific cleanup options

Posted: March 19th, 2015, 6:54 am
by kronich
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.