Page 1 of 1

pre-queue script with SickRage check

Posted: July 4th, 2018, 11:10 am
by slvrdragn
Hi Guys,
I'm trying to update my pre-queue script in a way that would actually check the status in SB before queueing. I know that there is dupe checking built in, but i want a more realtime response.
I haven't quite figure out how to take a filename, pass it to the script and then have the SB check.
1. Need to parse the filename/nzbname into Showname Season Episode
2. Check the status of above with SB API
3. accept/reject if the status is downloaded vs snatched etc.

I think i can do 2/3 easily, but the #1 is killing me. Anyone done something like this?

Re: pre-queue script with SickRage check

Posted: July 4th, 2018, 1:21 pm
by safihre
SABnzbd should already do this for you, as you can see from the docs:
https://sabnzbd.org/wiki/scripts/pre-queue-scripts
Parameter 8-10
Is it not providing you this info?

Re: pre-queue script with SickRage check

Posted: July 30th, 2018, 7:42 pm
by slvrdragn
You are right, I blanked on that one and missed it.
I'll start playing with it. You rock.