Page 3 of 4
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 14th, 2008, 12:48 am
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
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 14th, 2008, 1:56 am
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/
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 14th, 2008, 2:28 am
by steve51184
not really what i was asking :\
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 16th, 2008, 11:37 am
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:
Restriction: there should be just ONE avi file present.
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 16th, 2008, 12:59 pm
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
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 16th, 2008, 3:16 pm
by shypike
RAR-files ? That means either you did not select the "D" option or the par2 verification failed.
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 17th, 2008, 11:17 am
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%?
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 17th, 2008, 3:48 pm
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.
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 17th, 2008, 4:23 pm
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?
Re: stop SABnzbd from downloading files into a folder named
Posted: September 28th, 2011, 7:57 pm
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.
Re: stop SABnzbd from downloading files into a folder named
Posted: September 29th, 2011, 1:46 am
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.
Re: stop SABnzbd from downloading files into a folder named
Posted: September 29th, 2011, 7:42 am
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>
Re: stop SABnzbd from downloading files into a folder named
Posted: September 29th, 2011, 8:42 am
by shypike
You must be using an older version.
It's supported starting at 0.6.4, but we recommend 0.6.9
Re: stop SABnzbd from downloading files into a folder named
Posted: September 29th, 2011, 8:55 am
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 *?
Re: stop SABnzbd from downloading files into a folder named
Posted: September 29th, 2011, 9:06 am
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.