Page 2 of 2

Re: New option "On queue finish"

Posted: November 25th, 2022, 4:13 pm
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.

Re: New option "On queue finish"

Posted: November 25th, 2022, 4:32 pm
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=

Re: New option "On queue finish"

Posted: November 25th, 2022, 4:32 pm
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.

Re: New option "On queue finish"

Posted: November 25th, 2022, 4:42 pm
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.

Re: New option "On queue finish"

Posted: December 4th, 2022, 5:59 am
by KeesC
Any hint?

Re: New option "On queue finish"

Posted: December 4th, 2022, 6:41 am
by sander
KeesC wrote: December 4th, 2022, 5:59 amAny hint?
curl

Re: New option "On queue finish"

Posted: December 4th, 2022, 3:48 pm
by KeesC
This?
https://en.wikipedia.org/wiki/CURL

I discovered I have it on my PC.

Thanks!

Re: New option "On queue finish"

Posted: December 17th, 2022, 8:59 am
by KeesC
3.7.1 update: Scripts set On queue finish are no longer persistent by default.

Thanks,

Re: New option "On queue finish"

Posted: December 17th, 2022, 10:33 am
by ApexDE
is there a way to make them persistent again?

EDIT: found it, sorry ;)

("queue_complete_pers" must be true)

Re: New option "On queue finish"

Posted: December 17th, 2022, 12:04 pm
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.