New option "On queue finish"

Want something added? Ask for it here.
KeesC
Newbie
Newbie
Posts: 22
Joined: December 31st, 2018, 9:44 am

Re: New option "On queue finish"

Post by KeesC »

Ok, I tried it, but it doesn't work. I am not sure how to call the API from a bat file.
i put in the bat file;
http://host:port/sabnzbd/api?output=json&apikey=APIKEY&api?mode=queue&name=change_complete_action&value=

I don't see any bat file running, not even with a PAUSE command in it.
When I had the "shutdown /r" command in it, I did not see anything either, but it worked.
User avatar
safihre
Administrator
Administrator
Posts: 5524
Joined: April 30th, 2015, 7:35 am
Contact:

Re: New option "On queue finish"

Post by safihre »

I think there's a typo, try:
http://host:port/sabnzbd/api?output=json&apikey=APIKEY&mode=queue&name=change_complete_action&value=
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
safihre
Administrator
Administrator
Posts: 5524
Joined: April 30th, 2015, 7:35 am
Contact:

Re: New option "On queue finish"

Post by safihre »

I will also change this for the next major release (3.8.x), so all options are not persistent unless that option is checked.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
KeesC
Newbie
Newbie
Posts: 22
Joined: December 31st, 2018, 9:44 am

Re: New option "On queue finish"

Post by KeesC »

But how do I call the API from a bat file? The WIKI doesn't tell me.
'https:' is not recognized as an internal or external command,
operable program or batch file.
KeesC
Newbie
Newbie
Posts: 22
Joined: December 31st, 2018, 9:44 am

Re: New option "On queue finish"

Post by KeesC »

Any hint?
User avatar
sander
Release Testers
Release Testers
Posts: 9079
Joined: January 22nd, 2008, 2:22 pm

Re: New option "On queue finish"

Post by sander »

KeesC wrote: December 4th, 2022, 5:59 amAny hint?
curl
KeesC
Newbie
Newbie
Posts: 22
Joined: December 31st, 2018, 9:44 am

Re: New option "On queue finish"

Post by KeesC »

This?
https://en.wikipedia.org/wiki/CURL

I discovered I have it on my PC.

Thanks!
KeesC
Newbie
Newbie
Posts: 22
Joined: December 31st, 2018, 9:44 am

Re: New option "On queue finish"

Post by KeesC »

3.7.1 update: Scripts set On queue finish are no longer persistent by default.

Thanks,
ApexDE
Newbie
Newbie
Posts: 31
Joined: August 8th, 2012, 6:09 am

Re: New option "On queue finish"

Post by ApexDE »

is there a way to make them persistent again?

EDIT: found it, sorry ;)

("queue_complete_pers" must be true)
User avatar
safihre
Administrator
Administrator
Posts: 5524
Joined: April 30th, 2015, 7:35 am
Contact:

Re: New option "On queue finish"

Post by safihre »

Yes it was confusing that scripts and other options worked differently, now for all options in the drop down the special setting needs to be set to make it persistent.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply