pre-queue script with SickRage check

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
slvrdragn
Newbie
Newbie
Posts: 17
Joined: April 29th, 2013, 12:38 pm

pre-queue script with SickRage check

Post 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?
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: pre-queue script with SickRage check

Post 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?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
slvrdragn
Newbie
Newbie
Posts: 17
Joined: April 29th, 2013, 12:38 pm

Re: pre-queue script with SickRage check

Post by slvrdragn »

You are right, I blanked on that one and missed it.
I'll start playing with it. You rock.
Post Reply