On queue finish : Pause SABnzbd

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
timcdn
Newbie
Newbie
Posts: 26
Joined: March 5th, 2010, 5:29 pm

On queue finish : Pause SABnzbd

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: On queue finish : Pause SABnzbd

Post 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.
timcdn
Newbie
Newbie
Posts: 26
Joined: March 5th, 2010, 5:29 pm

Re: On queue finish : Pause SABnzbd

Post by timcdn »

I should of noted that I am a mac user, does the same instructions apply.

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

Re: On queue finish : Pause SABnzbd

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