Sorting

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.
risho
Newbie
Newbie
Posts: 10
Joined: July 17th, 2011, 6:11 am

Sorting

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

Re: Sorting

Post 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.
risho
Newbie
Newbie
Posts: 10
Joined: July 17th, 2011, 6:11 am

Re: Sorting

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

Re: Sorting

Post by shypike »

The behaviour you want is accomplished by using:

/home/user/downloads/complete/anime*
risho
Newbie
Newbie
Posts: 10
Joined: July 17th, 2011, 6:11 am

Re: Sorting

Post 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.
risho
Newbie
Newbie
Posts: 10
Joined: July 17th, 2011, 6:11 am

Re: Sorting

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

Re: Sorting

Post by shypike »

Use the extension-based clean-up list in Config->General.
risho
Newbie
Newbie
Posts: 10
Joined: July 17th, 2011, 6:11 am

Re: Sorting

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

Re: Sorting

Post 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 )
risho
Newbie
Newbie
Posts: 10
Joined: July 17th, 2011, 6:11 am

Re: Sorting

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

Re: Sorting

Post 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
risho
Newbie
Newbie
Posts: 10
Joined: July 17th, 2011, 6:11 am

Re: Sorting

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

Re: Sorting

Post by shypike »

risho wrote: Exit(-1) Cannot run script /home/*/.sabnzbd/scrips/animescript2 (More)
still.
Typo? Don't you mean scripTs?
risho
Newbie
Newbie
Posts: 10
Joined: July 17th, 2011, 6:11 am

Re: Sorting

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

Re: Sorting

Post by shypike »

Can you check in the log file for some more detailed info?
Post Reply