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.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

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

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

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

Post 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 :(
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

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

Post by switch »

Oh so you don't want any folders at all? Thought you just wanted episodes to not go inside their own folders.
steve51184

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

Post 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?
steve51184

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

Post 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
DeXeS
Release Testers
Release Testers
Posts: 206
Joined: January 28th, 2008, 1:04 pm
Location: The Netherlands

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

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

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

Post by steve51184 »

i don't have the skill to make it myself :-[
steve51184

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

Post 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?
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 »

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

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

Post by steve51184 »

shypike i REALLY REALLY appreciate you making the script but that's for a windows machine and i run linux :\
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 »

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

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

Post by steve51184 »

how dangerous? :-\
steve51184

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

Post by steve51184 »

just tested a file with it and it didn't do anything..
Stage UserScript
    [USER-SCRIPT]: => Show script output
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 »

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

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

Post by steve51184 »

works perfectly thank you VERY VERY much!!!
Post Reply