Page 1 of 1

On queue finish : Pause SABnzbd

Posted: September 13th, 2010, 3:58 pm
by timcdn
Hi Guys

I like to check the nzb files in the queue before downloading them so I leave the program paused, then check on it daily, delete the RSS aggregated files I don't want (that sneak through the filters) and then download the queue.

Right now I have it set to:

On queue finish : Shutdown SABnzbd

I would like an option to:

On queue finish : Pause SABnzbd

That way I don't have to restart the program and wait for it to scrape the RSS feeds before editing the Queue.

I am thinking that a script is the way to go, but I don't know the line of code to use.

Thanks in advance.

Tim

Re: On queue finish : Pause SABnzbd

Posted: September 13th, 2010, 4:22 pm
by shypike
You must create a end-of-queue script and put it the script folder.
First you need to install the GNU tool wget: http://gnuwin32.sourceforge.net/packages/wget.htm
Then your script:

@echo off
"c:\program files\wget\wget.exe" -o nul "http://localhost:8080/sabnzbd/api?mode= ... key=BLABLA"

For BLABLA you substitute the long apikey string to be found in Config->General.
You may need to tweak the path of wget.exe, depending where you install it.

Re: On queue finish : Pause SABnzbd

Posted: September 13th, 2010, 4:46 pm
by timcdn
I should of noted that I am a mac user, does the same instructions apply.

Thanks

Re: On queue finish : Pause SABnzbd

Posted: September 14th, 2010, 3:26 am
by shypike
Almost:
wget: http://wget.darwinports.com/

Assuming the wget installer adds wget to the path, the script is:

Code: Select all

#!/bin/sh
wget -o /dev/null "http://localhost:8080/sabnzbd/api?mode=pause&apikey=BLABLA"
Make sure you set the executable bit of the script:
chmod +x scriptname