Page 1 of 1
Automatically pause downloads when using a specific network
Posted: December 9th, 2011, 3:01 am
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.
Re: Automatically pause downloads when using a specific netw
Posted: December 9th, 2011, 4:59 am
by shypike
No.
Unless you write your own script that calls SABnzbd's API to pause
when it sees a different LAN.
Re: Automatically pause downloads when using a specific netw
Posted: December 9th, 2011, 7:11 am
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.
Re: Automatically pause downloads when using a specific netw
Posted: December 9th, 2011, 10:01 am
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"