Search found 6 matches

by r1pclaw
September 23rd, 2010, 7:03 pm
Forum: Bug Reports
Topic: SABnzbd API Issue Re: slots:""
Replies: 7
Views: 3515

Re: SABnzbd API Issue Re: slots:""

Right on, not a difficult issue to get around, just had me stumped for a bit.

Thanks!
by r1pclaw
September 22nd, 2010, 1:40 pm
Forum: Bug Reports
Topic: SABnzbd API Issue Re: slots:""
Replies: 7
Views: 3515

Re: SABnzbd API Issue Re: slots:""

The "scripts" field is an array as well (on a Queue json request), but it reports an empty array as:
"scripts":[]
by r1pclaw
September 22nd, 2010, 1:30 pm
Forum: Bug Reports
Topic: SABnzbd API Issue Re: slots:""
Replies: 7
Views: 3515

Re: SABnzbd API Issue Re: slots:""

I was looking at this: https://docs.sonatype.com/display/NX/Empty+and+Unset+JSON+Data+Specification So i'm guessing that google is using that kind of standard for parsing. The code for parsing: Gson gson = new Gson(); SabQueue que = null; //This grabs the queue information, cfg is an object holding ...
by r1pclaw
September 22nd, 2010, 1:26 pm
Forum: Bug Reports
Topic: SABnzbd API Issue Re: slots:""
Replies: 7
Views: 3515

Re: SABnzbd API Issue Re: slots:""

Oh, and that was for the 'queue' JSON response, I haven't investigated the history one yet.
by r1pclaw
September 22nd, 2010, 1:23 pm
Forum: Bug Reports
Topic: SABnzbd API Issue Re: slots:""
Replies: 7
Views: 3515

Re: SABnzbd API Issue Re: slots:""

Awesome, that was fast :P
by r1pclaw
September 22nd, 2010, 1:07 pm
Forum: Bug Reports
Topic: SABnzbd API Issue Re: slots:""
Replies: 7
Views: 3515

SABnzbd API Issue Re: slots:""

I've been playing with google's gson (version 1.5) library, and it works wonders for parsing the JSON output (SABnzbd version 0.5.4), however I have come across a bit of an issue with the way "slots" are reported. When there are no slots in use (noofslots: 0)  slots are reported with: &quo...