#1
Hi,

I have installed Nzb360 app tonight and within 5 minutes i bought the pro version so great job, you have made things much easier :lol:

Not sure if it is possible but is there any way you can add a "shutdown" or "shutdown when download complete" button/option.

Also I have categories setup in Sabnzbd for Movies so if i add a movie nzb from a index site the category "Movie" is automatically selected where if i send the nzb through the Nzb360 app no category is selected.

thanks.
#2
I am not sure that feature is within the APIs of SAB or NZBget. I will double check though.

For your second request, can you describe this in more detail?
#5
There isn't an API function for this (aside from shutting down SAB itself). Some SAB themes have a button for this. Maybe if you could capture the request that button makes to the server and post it here (or pastebin if it's big), the developer could implement this.

I think those shutdown after complete buttons are item related though, so you'd have to select an item (obviously the last in queue) to have the server shut itself down after all downloads are complete.

PS: You could use something like Burp Proxy to capture that request.
#6
fatboi wrote:Facepalm: Ignore my category request have just noticed you have to set the category manually by holding down on the download item in the que :oops:

Sorry I meant the "Shutdown pc" option which not sure if this is done via API.

https://www.dropbox.com/s/1qjb8d0nrr3dw ... 020832.jpg

If you search for an item within the indexer, navigate to its details page then send to sabnzbd it should populate a category or at least it used to when i had the google play version. But there was/is a bug with the search results see here.
#7
f3bruary wrote:There isn't an API function for this (aside from shutting down SAB itself). Some SAB themes have a button for this. Maybe if you could capture the request that button makes to the server and post it here (or pastebin if it's big), the developer could implement this.

I think those shutdown after complete buttons are item related though, so you'd have to select an item (obviously the last in queue) to have the server shut itself down after all downloads are complete.

PS: You could use something like Burp Proxy to capture that request.
thanks for the reply, i have not a clue how to capture the shutdown request but i am more than happy to test if guided.

Keelan wrote:
fatboi wrote:If you search for an item within the indexer, navigate to its details page then send to sabnzbd it should populate a category or at least it used to when i had the google play version. But there was/is a bug with the search results see here.
I had to set a category for Movies & TV first time round but once set now works perfect. :D
#8
fatboi wrote: thanks for the reply, i have not a clue how to capture the shutdown request but i am more than happy to test if guided.
If you can find the theme or button that can perform that action, let me know and I will take a look and see if I can get you the request headers. You're using SAB right ?
#9
f3bruary wrote:
fatboi wrote: thanks for the reply, i have not a clue how to capture the shutdown request but i am more than happy to test if guided.
If you can find the theme or button that can perform that action, let me know and I will take a look and see if I can get you the request headers. You're using SAB right ?
Sure am mate, using latest official build 0.7.16 and skin is plush gold.

I can't get a screen shot until tomorrow but there is a down arrow in the top right of Sab interface in which the shutdown button is in the drop down menu guess this is what you mean.

appreciate your help.
#10
http://wiki.sabnzbd.org/automation-support

Are we talking about:

Set the autoshutdown feature of SABnzbd on (1) or off (0)

Code: Select all

http://host:port/api?mode=autoshutdown&name=1&apikey=SUPER_SECRET_KEY
When i do this it shows not implemented so i am not sure what that means but all the other calls seems to work.

Possible it was removed in later versions of the api?
http://wiki.sabnzbd.org/api

Shutdown works though

Code: Select all

http://localhost:8080/sabnzbd/api?mode=shutdown&apikey=SUPER_SECRET_KEY
Edit:
Screenshot Image
Edit 2:
Sorry it seems i read this as sabnzbd shutting down and missed the part about PC. Would this not change from OS to OS?




EDIT 3:
More digging,

Code: Select all

http://localhost:8080/sabnzbd/api?mode=queue&name=change_complete_action&value=shutdown_pc&apikey=SECRET_API_KEY
This changes the select option to shutdown PC.
[/b]
cron