Page 1 of 1

pre queue script question.

Posted: April 27th, 2013, 1:37 am
by sparklyballs
i'm running couch potato , headphones and sickbeard in conjunction with sab at the moment, i'm going to migrate everything over to an unraid setup within the next few days and i'm interested in a pre queue script.

as it stands now, headphones picks up a lot of "dodgy" files which all seem to be round about the 30-35 MB size, i'd like to screen for anything under say 35MB coming from headphones (i'm prepared to sacrifice any false-positives).

My next issue concerns couch potato and splitting out hd movies from sd, is there any way to automate this (say via pre queue based on size) or within couchpotato itself , or another method ?

Re: pre queue script question.

Posted: April 27th, 2013, 1:41 am
by sparklyballs
to clarify the "dodgy" , i mean .exe files instead of media format files.

Re: pre queue script question.

Posted: April 27th, 2013, 3:38 am
by shypike
Our pre-queue description contains example for checking the size:
http://wiki.sabnzbd.org/user-pre-queue-script

Re: pre queue script question.

Posted: April 27th, 2013, 11:14 am
by sparklyballs
shypike wrote:Our pre-queue description contains example for checking the size:
http://wiki.sabnzbd.org/user-pre-queue-script

thanks for the link, i'm intrigued by this bit "The script can be anything that is considered "executable" by the operating system."


can i take this to mean i can write a catch-all email-script that lets me know when a nzb has been received by sab if it meets certain criteria (like emanating from sickbeard for instance ? )

Re: pre queue script question.

Posted: April 27th, 2013, 2:33 pm
by shypike
sparklyballs wrote: can i take this to mean i can write a catch-all email-script that lets me know when a nzb has been received by sab if it meets certain criteria (like emanating from sickbeard for instance ? )
Not sure what you mean.
You get the info that is listed in the description.
You cannot really see where the NZB comes from, but you can test its size.
One pre-script is run for all the NZBs.

Re: pre queue script question.

Posted: April 27th, 2013, 2:42 pm
by jcfp
You can make the script do stuff that isn't directly related to the intended use of deciding about queue entry and manipulating associated parameters, if that's what you meant. For the example you gave, the origin of the nzb (i.e., sickbeard) could be derived from its category, and sending email from the command line is possible, so this could work.

Re: pre queue script question.

Posted: April 27th, 2013, 5:03 pm
by sparklyballs
jcfp wrote:You can make the script do stuff that isn't directly related to the intended use of deciding about queue entry and manipulating associated parameters, if that's what you meant. For the example you gave, the origin of the nzb (i.e., sickbeard) could be derived from its category, and sending email from the command line is possible, so this could work.

that's exactly what i meant, i'd like to be notified by email if sab gets an nzb from sickbeard.