Page 1 of 2

Sorting

Posted: July 17th, 2011, 6:19 am
by risho
I have gotten catagories set up properly but here is what I am trying to do

I want to make it so that my anime catagory doesn't put each episode in a seperate folder. it really tedious to manage, so i would like it if i could have it sorted so that all of my anime was thrown into 1 folder with all the nfo's, nzb backups and sfv's were deleted, so that only the anime is in there.

i would assume this requires a post processing script, but i don't know how to set it up.

Version: SABnzbd Version: 0.5.4
OS: Linux Mint 10 (ubuntu 10.04)

I would like it if i could have my anime all extracted to

/home/*/downloads/complete/anime

with everything else removed.

Re: Sorting

Posted: July 17th, 2011, 7:00 am
by shypike
Have you read this on the category page?
Ending the path with an asterisk * will prevent creation of job folders.
That's what you need and not the Sorting function.

Re: Sorting

Posted: July 17th, 2011, 3:41 pm
by risho
the asterisk is a wildcard for my user account name.. i censored it. i don't actually want it in there.


/home/user/downloads/complete/anime

Re: Sorting

Posted: July 17th, 2011, 3:52 pm
by shypike
The behaviour you want is accomplished by using:

/home/user/downloads/complete/anime*

Re: Sorting

Posted: July 17th, 2011, 11:38 pm
by risho
setting my folder/path in catagories to: /home/user/downloads/complete/anime*

just created a folder called anime* and then created a new folder inside of that with the name of whatever i downloaded.

Re: Sorting

Posted: July 18th, 2011, 12:09 am
by risho
i updated sabnzbd to the latest version and problem solved. thanks for your help.

i would still like a way to be able to delete nfo's backup nzbs and sfv's from only my anime catagory though..

Re: Sorting

Posted: July 18th, 2011, 1:48 am
by shypike
Use the extension-based clean-up list in Config->General.

Re: Sorting

Posted: July 18th, 2011, 2:57 am
by risho
will that limit it to only effecting specific categories though? or will it do that for everything?

i want the nfo's for everything else, just not my anime category

Re: Sorting

Posted: July 18th, 2011, 3:36 am
by shypike
In that case, use a simple user script for the anime category.

@echo off
cd /d %1
del *.nfo

(More info about scripts: http://wiki.sabnzbd.org/user-scripts )

Re: Sorting

Posted: July 18th, 2011, 6:50 am
by risho
i got a script working on my desktop but when i put it on my laptop it won't run (its running ubuntu)

it gives me an error

Code: Select all

Exit(-1) Cannot run script /home/*/.sabnzbd/scripts/animescript
any ideas?

Re: Sorting

Posted: July 18th, 2011, 8:34 am
by shypike
So you're not on Windows.

Code: Select all

#!/bin/sh
cd "$1"
rm *.nfo
Make sure you set the X bit of the script.
chmod +x script

Re: Sorting

Posted: July 18th, 2011, 4:35 pm
by risho
both my pc's are running linux mint (ubuntu) and they are both running the same version of sab. they are both using the exact same script, and it works on my desktop, and i did chmod +x on both of them already, but on my laptop it gives me the error

Exit(-1) Cannot run script /home/*/.sabnzbd/scrips/animescript2 (More)

still.

Re: Sorting

Posted: July 18th, 2011, 4:41 pm
by shypike
risho wrote: Exit(-1) Cannot run script /home/*/.sabnzbd/scrips/animescript2 (More)
still.
Typo? Don't you mean scripTs?

Re: Sorting

Posted: July 18th, 2011, 6:30 pm
by risho
I typoed the folder when I made it... but it is the right name. the script shows up in the dropdown menu under categories.

Re: Sorting

Posted: July 19th, 2011, 1:07 am
by shypike
Can you check in the log file for some more detailed info?