Page 1 of 1
no nzb named folder and automatic shutdown possible?
Posted: December 11th, 2008, 8:06 am
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!
Re: no nzb named folder and automatic shutdown possible?
Posted: December 11th, 2008, 9:34 am
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).
Re: no nzb named folder and automatic shutdown possible?
Posted: December 11th, 2008, 10:02 am
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?
Re: no nzb named folder and automatic shutdown possible?
Posted: December 11th, 2008, 3:14 pm
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.
