Search found 9 matches

by sparklyballs
15 Jan 2014, 10:40
Forum: Support
Topic: Category Priority (Automated)
Replies: 13
Views: 4467

Re: Category Priority (Automated)

case would work for you more like this. if [ "$NZBNP_CATEGORY" = tv-shows ] ; then case "$NZBNP_NZBNAME" in *"how.i.met.your.mother"*) echo "[NZB] PRIORITY=50";; esac fi I'm not 100% on whether you need the quotes on how i met your mother part, but i know for a fact the wildcards (*) work very well ...
by sparklyballs
15 Jan 2014, 07:18
Forum: Support
Topic: Category Priority (Automated)
Replies: 13
Views: 4467

Re: Category Priority (Automated)

#Adjust Priority for Series based on show name case "$NZBNP_FILENAME" contains "how.i.met.your.mother" echo "[NZB] PRIORITY=100";; "$NZBNP_FILENAME" contains "two.and.half.men" echo "[NZB] PRIORITY=100";; fi case would work for you more like this. if [ "$NZBNP_CATEGORY" = tv-shows ] ; then case "$N...
by sparklyballs
15 Jan 2014, 07:02
Forum: Support
Topic: Category Priority (Automated)
Replies: 13
Views: 4467

Re: Category Priority (Automated)

#Adjust Priority for Series based on show name case "$NZBNP_FILENAME" contains "how.i.met.your.mother" echo "[NZB] PRIORITY=100";; "$NZBNP_FILENAME" contains "two.and.half.men" echo "[NZB] PRIORITY=100";; fi case would work for you more like this. if [ "$NZBNP_CATEGORY" = tv-shows ] ; then case "$N...
by sparklyballs
15 Jan 2014, 00:50
Forum: Support
Topic: PreProcessing Script query.
Replies: 3
Views: 1484

Re: PreProcessing Script query.

#!/bin/sh curyear=`date +%Y` lastyear=$((`date +%Y` -1)) twoyearsago=$((`date +%Y` -2)) if [ "$NZBNP_CATEGORY" = movies ] ; then case "$NZBNP_NZBNAME" in *$curyear*) echo "[NZB] PRIORITY=50";; *$lastyear*) echo "[NZB] PRIORITY=50";; *$twoyearsago*) echo "[NZB] PRIORITY=50";; esac fi if [ "$NZBNP_CAT...
by sparklyballs
15 Jan 2014, 00:25
Forum: Support
Topic: PreProcessing Script query.
Replies: 3
Views: 1484

PreProcessing Script query.

this is my script thus far for assigning movies with the current year, last year and two years ago in their file names a higher priority in the download list along with giving all TV series very high priority. #!/bin/sh curyear=`date +%Y` lastyear=$((`date +%Y` -1)) twoyearsago=$((`date +%Y` -2)) if...
by sparklyballs
12 Jan 2014, 16:54
Forum: Support
Topic: NEWBIE with a Feature Request.
Replies: 3
Views: 1182

Re: NEWBIE with a Feature Request.

I guess I'll have to dust off my sabnzbd script for prioritising newer movies and adapt for nzbget seeing as I really like the low CPU and memory overhead with nzbget. #!/usr/bin/env bash lastyear=$((`date +%Y` -1)) if [[ $1 == ‘*$lastyear*’ ]] then case $3 in *movie*) priority="1" ;; *) priority="$...
by sparklyballs
12 Jan 2014, 16:27
Forum: Support
Topic: NEWBIE with a Feature Request.
Replies: 3
Views: 1182

Re: NEWBIE with a Feature Request.

PS. I've cobbled this together from the great god google and his amazing powers of copy pasting. #!/bin/sh # Compare the current nzb file directory to sick-beard's directory if [“$NZBPP_CATEGORY” = "tv-shows”] ; then # If it matches set priorty to very high # possible values for priority: # -100 = v...
by sparklyballs
12 Jan 2014, 16:23
Forum: Support
Topic: NEWBIE with a Feature Request.
Replies: 3
Views: 1182

NEWBIE with a Feature Request.

I know it's probably bad form to ask for features to be implemented after only using the app for a couple of days, but i don't care (cos that's how i roll, lol). It would be a good addition in my mind if in the categories section you could assign priorities instead of having to resort to scripting a...
by sparklyballs
12 Jan 2014, 16:14
Forum: Support
Topic: NZBget 12 SSL news server error
Replies: 3
Views: 1787

Re: NZBget 12 SSL news server error

I too had some issues initially with hanging downloads and TLS handshake errors, after some pretty intensive googling i found that increasing my ConnectionTimeout from 60 seconds to 120 seconds that they cleared up. Also after doing this in V12 it stopped an issue with the webUI having constant conn...