no nzb named folder and automatic shutdown possible?

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.
Post Reply
webman2k
Newbie
Newbie
Posts: 2
Joined: December 11th, 2008, 8:00 am

no nzb named folder and automatic shutdown possible?

Post by webman2k »

Hello all - had 2 quick questions.  First, thanks to all the developers working on this - it's just what I was looking for, and has been perfect so far.

I'm running the Mac OS X version, and I was wondering if there was a way to NOT have the program automatically dump resulting files into a folder named after the nzb file.  I'd like the final file to be in the root level of the assigned completed folder.  Is this possible?

Also, any way to have it set so the app will automatically shutdown after the queue?  I have to set that with each process.  Is there a default setting somewhere for this?

Thanks!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: no nzb named folder and automatic shutdown possible?

Post by shypike »

Named folders
No, except when you use the Season support (http://sabnzbd.wikidot.com/folder-sorting)
Alternative is to write a simple shell script that does this for you and set it as default user script
(see http://sabnzbd.wikidot.com/user-scripts)

Auto shutdown
There's currently no way to do this.
We'll think about making the setting survive sessions.
It may lead to unexpected behavior though.

BTW why do you want the app to shutdown?
(On Windows we do offer the more useful option of system shutdown).
webman2k
Newbie
Newbie
Posts: 2
Joined: December 11th, 2008, 8:00 am

Re: no nzb named folder and automatic shutdown possible?

Post by webman2k »

shypike wrote: Named folders
No, except when you use the Season support (http://sabnzbd.wikidot.com/folder-sorting)
Alternative is to write a simple shell script that does this for you and set it as default user script
(see http://sabnzbd.wikidot.com/user-scripts)

Auto shutdown
There's currently no way to do this.
We'll think about making the setting survive sessions.
It may lead to unexpected behavior though.

BTW why do you want the app to shutdown?
(On Windows we do offer the more useful option of system shutdown).
Thanks for your reply.  I'm on a laptop, that gets closed and goes to sleep multiple times a day, and there's no reason really to keep it running all day.  Once a day or so, I download an nzb file, and add it to the queue via the upload form.  I go to the queue and tell it to quit when done.

Could someone provide a sample script that would do this?
Last edited by webman2k on December 11th, 2008, 10:15 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: no nzb named folder and automatic shutdown possible?

Post by shypike »

SABnzbd will survive standby of laptop. No need to stop the program.

It doesn't actually do anything when the queue is empty, except scan the
Watched Folder (you can choose a long interval).

A script would be something like:

Code: Select all

#!/bin/sh

# Move content of folder to its parent folder
mv "$1"/* "$1/.."

# Remove folder (will fail when not empty)
rmdir "$1"
Use at your own risk.  ;D
Post Reply