API delete all does not work

This is the place to help test and discuss Version 6 Beta releases.

API delete all does not work

Postby Biship » Tue Aug 14, 2018 1:19 pm

The history call shows files I know downloaded weeks ago.
http://htpc:8999/api?apikey=<apikey>&mode=history
Per: https://sabnzbd.org/wiki/advanced/api#delete_history
I can clear them manually, by ID:
http://htpc:8999/api?apikey=<apikey>&mode=history&name=delete&value=3122
However the all param does not work:
http://htpc:8999/api?apikey=<apikey>&mode=history&name=delete&value=all
(deletes nothing)

Can you please fix?
Biship
Active Participant
Active Participant
 
Posts: 88
Joined: Sun Jul 27, 2003 10:14 am

Registered Newsbin User since: 04/01/03

Re: API delete all does not work

Postby Quade » Wed Aug 15, 2018 12:36 pm

I can look into it. Should be easy to implement.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44867
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: API delete all does not work

Postby Biship » Wed Aug 15, 2018 2:35 pm

Your the best developer on this web site.
Thank you.
Biship
Active Participant
Active Participant
 
Posts: 88
Joined: Sun Jul 27, 2003 10:14 am

Registered Newsbin User since: 04/01/03

Re: API delete all does not work

Postby Biship » Tue Aug 28, 2018 7:10 am

Doesn't work in 5079. A chance you can get it into the next beta?
Biship
Active Participant
Active Participant
 
Posts: 88
Joined: Sun Jul 27, 2003 10:14 am

Registered Newsbin User since: 04/01/03

Re: API delete all does not work

Postby Quade » Tue Aug 28, 2018 10:23 am

It was too late to put it into 6.81.

It's on my todo list. Basically every time I make even small changes this late in the game, it typically screws something up. 6.81 seems to be stable and reliable so, I didn't want to chance fucking it up.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44867
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: API delete all does not work

Postby Biship » Wed Dec 19, 2018 7:52 am

Any chance this can make the next beta?
Biship
Active Participant
Active Participant
 
Posts: 88
Joined: Sun Jul 27, 2003 10:14 am

Registered Newsbin User since: 04/01/03

Re: API delete all does not work

Postby Quade » Wed Dec 19, 2018 4:08 pm

"All" is in there. I was just looking at it. I'll see if I can figure out why it's not "all"ing.

Edit:

I tested this using a test jig to send "delete all" for queue and history. I see it working. It won't delete anything that doesn't have an NZB so, it won't delete header downloads or files added to downloading using search or headers.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44867
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: API delete all does not work

Postby Biship » Tue May 14, 2019 7:13 am

Still not working.
In 5103:

Lists history:
http://htpc:8999/api?apikey=<key>&mode=history

Does not delete history:
http://htpc:8999/api?apikey=<key>&mode=history&name=delete&value=all
Biship
Active Participant
Active Participant
 
Posts: 88
Joined: Sun Jul 27, 2003 10:14 am

Registered Newsbin User since: 04/01/03


Return to Newsbin Version 6 Beta Support

Who is online

Users browsing this forum: No registered users and 3 guests