Automatically pause downloads when using a specific network

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
aerius
Newbie
Newbie
Posts: 2
Joined: December 9th, 2011, 2:55 am

Automatically pause downloads when using a specific network

Post by aerius »

I recently noticed that my university is strictly enforcing its piracy policies. Most of the time when I bring my laptop to the campus, I pause SABnzbd+, but I think it is possible I've forgot to pause it in the past. As SABnzbd+ downloads automatically via SickBeard, there is a danger in unintentional downloading.

Is it possible to automatically pause SABnzbd+ when connecting via a specific IP-range?

I use 0.6.10 on Mac OS 10.7.2.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Automatically pause downloads when using a specific netw

Post by shypike »

No.
Unless you write your own script that calls SABnzbd's API to pause
when it sees a different LAN.
aerius
Newbie
Newbie
Posts: 2
Joined: December 9th, 2011, 2:55 am

Re: Automatically pause downloads when using a specific netw

Post by aerius »

I've found a solution: I use Sidekick as a location aware program, and open the API URL. Works perfect. The fact that a Safari window opens isn't the most elegant solution. Is there a way to script the calling of api?mode=pause without opening a Safari window? Sidekick can execute scripts too.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Automatically pause downloads when using a specific netw

Post by shypike »

Install the CURL tool on your system (http://curl.haxx.se/download.html).
It allows you run script lines like this:
curl "http://localhost:8080/sabnzbd/api?mode= ... key=blabla"
Post Reply