Search found 8 matches

by sparklyballs
May 10th, 2013, 7:56 am
Forum: Post-Processing Scripts
Topic: [BASH] Pre-processing script (or queue-filter scripts)
Replies: 22
Views: 33137

Re: [BASH] Pre-processing script (or queue-filter scripts)

got it working by using the following. #!/usr/bin/env bash curyear=`date +%Y` lastyear=$((`date +%Y` -1)) testyear=($lastyear,$curyear) if [[ $1 == *$testyear* ]] then case $3 in *movie*) priority="1" ;; *) priority="$5" ;; esac else priority="$5" fi echo "1" ...
by sparklyballs
May 8th, 2013, 8:23 am
Forum: Post-Processing Scripts
Topic: [BASH] Pre-processing script (or queue-filter scripts)
Replies: 22
Views: 33137

Re: [BASH] Pre-processing script (or queue-filter scripts)

hi there, this seems like a good place to ask a question, i'm looking to get a prequeue script to give movies with a date later than 2012 a higher priority than those that don't. but i'm new to bash (running unraid) and i don't have the first clue how to do the if (movie name contains 2012 or 2013) ...
by sparklyballs
May 6th, 2013, 7:11 am
Forum: General Help
Topic: queue question
Replies: 0
Views: 898

queue question

Just a brief question (I hope), got a reasonable size want list on couchpotato with a mix of old and new movies, what i'm wondering is if there is any way to automatically bump a movie up the sab queue based on it's date (or by it's name, then perhaps i can screen for the date that way) ? I'm asking...
by sparklyballs
April 27th, 2013, 5:03 pm
Forum: General Help
Topic: pre queue script question.
Replies: 6
Views: 2210

Re: pre queue script question.

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 fr...
by sparklyballs
April 27th, 2013, 11:14 am
Forum: General Help
Topic: pre queue script question.
Replies: 6
Views: 2210

Re: pre queue script question.

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 writ...
by sparklyballs
April 27th, 2013, 1:41 am
Forum: General Help
Topic: pre queue script question.
Replies: 6
Views: 2210

Re: pre queue script question.

to clarify the "dodgy" , i mean .exe files instead of media format files.
by sparklyballs
April 27th, 2013, 1:37 am
Forum: General Help
Topic: pre queue script question.
Replies: 6
Views: 2210

pre queue script question.

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 ...
by sparklyballs
April 4th, 2013, 3:41 pm
Forum: General Help
Topic: Custom Email Templates
Replies: 2
Views: 1558

Custom Email Templates

Hi there, i've been using sabnzbd/couchpotato/sickbeard for about a week or so now and i like it. what i am looking to do hopefully is have an email notification from sab that it has received an nzb file from couch or sickbeard. I already get notifications when files have finished downloading but i ...