stop SABnzbd from downloading files into a folder named after the nzb file

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.
steve51184

Re: stop SABnzbd from downloading files into a folder named after the nzb file

Post by steve51184 »

i'm trying to edit the script to rename the .avi file to the same name as the nzb file but i can't get it to work so far i have:
cd "$1"
rename *.avi $2
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: stop SABnzbd from downloading files into a folder named after the nzb file

Post by shypike »

I suggest that you Google for Unix Shell on the internet.

This is a good starting point: http://www.freeos.com/guides/lsst/
steve51184

Re: stop SABnzbd from downloading files into a folder named after the nzb file

Post by steve51184 »

not really what i was asking :\
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: stop SABnzbd from downloading files into a folder named after the nzb file

Post by shypike »

steve51184 wrote: i'm trying to edit the script to rename the .avi file to the same name as the nzb file but i can't get it to work so far i have:
cd "$1"
rename *.avi $2
This is not going to work.
What may work is:

Code: Select all

mv *.avi "$3.avi"
Restriction: there should be just ONE avi file present.
steve51184

Re: stop SABnzbd from downloading files into a folder named after the nzb file

Post by steve51184 »

will give that a try thank you

also that other script sometime doesn't work and will just move all the 15mb rar files into my complete folder
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: stop SABnzbd from downloading files into a folder named after the nzb file

Post by shypike »

RAR-files ? That means either you did not select the "D" option or the par2 verification failed.
steve51184

Re: stop SABnzbd from downloading files into a folder named after the nzb file

Post by steve51184 »

shypike wrote: RAR-files ? That means either you did not select the "D" option or the par2 verification failed.
the par2 verification failed but can i have the script run only if the job completes 100%?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: stop SABnzbd from downloading files into a folder named after the nzb file

Post by shypike »

That's what the option "Post-process only verified jobs" in Config-Switches is for.
You need to set it to On to prevent further post-processing (including user-scripts) of failed jobs.

The next release will also add the prefix _FAILED_ to the folder of a failed job.
steve51184

Re: stop SABnzbd from downloading files into a folder named after the nzb file

Post by steve51184 »

shypike wrote: That's what the option "Post-process only verified jobs" in Config-Switches is for.
You need to set it to On to prevent further post-processing (including user-scripts) of failed jobs.

The next release will also add the prefix _FAILED_ to the folder of a failed job.
thanks just the option i needed :)


also it sounds like you guys have a lot planned for sabnzbd is there any topic that lists some of the things you plan to add?
Chalky
Newbie
Newbie
Posts: 5
Joined: September 28th, 2011, 7:53 pm

Re: stop SABnzbd from downloading files into a folder named

Post by Chalky »

Does anyone know how to modify this to take advantage of the "move" command in order to save time and temp disk space on large downloads?

Thanks for the original shypike!
shypike wrote:Put this text in a file called mover.cmd and use that as the script.

Code: Select all

@echo off
rem Copy all to "complete"

cd /d %1
xcopy . .. /s/e/y
cd ..
del /s/q %1
rmdir /s/q %1
This is the last time, I'm not a script-writing service.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: stop SABnzbd from downloading files into a folder named

Post by shypike »

You're a bit behind.
Current releases allow you to add an * to the end of a category path.
This will prevent the creation of a folder per NZB.
Chalky
Newbie
Newbie
Posts: 5
Joined: September 28th, 2011, 7:53 pm

Re: stop SABnzbd from downloading files into a folder named

Post by Chalky »

shypike wrote:You're a bit behind.
Current releases allow you to add an * to the end of a category path.
This will prevent the creation of a folder per NZB.
Thats what I thought but I kept getting an error every time I tried...

One of my paths is "Y:\HDTV". When I try adding an * to make "Y:\HDTV*" I get the error below

<snip>
Incorrect parameter

Cannot create dir folder Y:\HDTV*
</snip>
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: stop SABnzbd from downloading files into a folder named

Post by shypike »

You must be using an older version.
It's supported starting at 0.6.4, but we recommend 0.6.9
Chalky
Newbie
Newbie
Posts: 5
Joined: September 28th, 2011, 7:53 pm

Re: stop SABnzbd from downloading files into a folder named

Post by Chalky »

shypike wrote:You must be using an older version.
It's supported starting at 0.6.4, but we recommend 0.6.9
That's the weirdest thing because I just started using sabnzbd tuesday and started at v0.6.9

*edit
I'm using the windows version, is it possible there may be a difference in syntax? Maybe I need to put a space between the path and the *?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: stop SABnzbd from downloading files into a folder named

Post by shypike »

No. In fact there should be no attempt to create the folders when you enter them.
Be aware that the * only works for category paths, including the "Default" category on Config->Categories.
It does not work for the "complete" path as set in Config->Folders.
Post Reply