[RESOLVED] Category specific cleanup options

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
kronich
Newbie
Newbie
Posts: 4
Joined: March 18th, 2015, 5:05 am

[RESOLVED] Category specific cleanup options

Post 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.
Last edited by kronich on March 25th, 2015, 5:02 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Category specific cleanup options

Post 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
kronich
Newbie
Newbie
Posts: 4
Joined: March 18th, 2015, 5:05 am

Re: Category specific cleanup options

Post 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.
kronich
Newbie
Newbie
Posts: 4
Joined: March 18th, 2015, 5:05 am

Re: Category specific cleanup options

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

Re: Category specific cleanup options

Post 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).
kronich
Newbie
Newbie
Posts: 4
Joined: March 18th, 2015, 5:05 am

Re: Category specific cleanup options

Post 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.
Post Reply