Page 2 of 4
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: March 25th, 2008, 2:02 pm
by switch
It is actually in the trunk, and probably more refined:
https://sabnzbdplus.svn.sourceforge.net ... runk/main/
We don't really offer support for people using the trunk though, as we likely know about most of the issues that need fixed.
It should work fine though, just higher chance of something being broken when you update it for new features.
You want to turn tv sorting in in config>directories and set it to "No folder" for all the episodes to go inside the single folder.
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: March 25th, 2008, 3:07 pm
by steve51184
switch wrote:
You want to turn tv sorting in in config>directories and set it to "No folder" for all the episodes to go inside the single folder.
tried that but it puts the episodes in showname/season/show.avi

Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: March 25th, 2008, 4:15 pm
by switch
Oh so you don't want any folders at all? Thought you just wanted episodes to not go inside their own folders.
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: March 25th, 2008, 4:19 pm
by steve51184
yeah i want no folder at all so i have a folder full of my .avi files no NO sub-folders can this be done?
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: March 26th, 2008, 7:11 pm
by steve51184
so how can i do this?
all i need is a script making that searches my complete folder for other folder and if it finds them it moves all files from them into my complete folder and remove the original folder
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: March 27th, 2008, 7:11 am
by DeXeS
You can always make your own postprocessing script... just a basic unix shell script. it's not hard, it just takes some time.
For if you don't know how it works:
http://www.tinker.ncsu.edu/LEGO/shell_help.html
and variables from sabnzbd that you can put in:
http://sabnzbdplus.wiki.sourceforge.net/External+Script
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: March 27th, 2008, 7:32 am
by steve51184
i don't have the skill to make it myself

Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 11th, 2008, 11:39 pm
by steve51184
steve51184 wrote:
so how can i do this?
all i need is a script making that searches my complete folder for other folder and if it finds them it moves all files from them into my complete folder and remove the original folder
so can i get any help with this or a way to make sabnzbd do it without a script?
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 12th, 2008, 3:33 am
by shypike
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 after the nzb file
Posted: April 12th, 2008, 5:21 am
by steve51184
shypike i REALLY REALLY appreciate you making the script but that's for a windows machine and i run linux :\
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 12th, 2008, 9:51 am
by shypike
Stick this in a file called mover.sh and set the X bit (chmod +x mover.sh).
Code: Select all
#!/bin/sh
# Copy all to "complete"
cd $1
cd ..
if cp -R $1/* .
then
rm -rf $1
fi
Test it first! It contains a rather dangerous
rm command.
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 12th, 2008, 9:54 am
by steve51184
how dangerous?

Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 12th, 2008, 10:04 am
by steve51184
just tested a file with it and it didn't do anything..
Stage UserScript
[USER-SCRIPT]: => Show script output
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 12th, 2008, 10:26 am
by shypike
OK, this one's much better.
Code: Select all
#!/bin/sh
# Copy all to "complete"
cd "$1"
for x in *
do
echo MOVE "$x" ..
mv "$x" ..
done
echo Remove "$1"
cd ..
rmdir "$1"
Also, you need to actually select it for the job.
Or make it the default on Config->switches.
Re: stop SABnzbd from downloading files into a folder named after the nzb file
Posted: April 12th, 2008, 10:59 am
by steve51184
works perfectly thank you VERY VERY much!!!