From c6f711ba976115ffe779c24f96aad20084f0b172 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Tue, 18 Dec 2012 15:51:17 -0800 Subject: [PATCH] Custom Email handling --- .../0.8.0/postprocess.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/nzbget-postprocessing-files/0.8.0/postprocess.sh b/nzbget-postprocessing-files/0.8.0/postprocess.sh index 110f4d1c..949eff63 100644 --- a/nzbget-postprocessing-files/0.8.0/postprocess.sh +++ b/nzbget-postprocessing-files/0.8.0/postprocess.sh @@ -104,6 +104,7 @@ nzbToMedia() { if [ "$Debug" = "yes" ]; then echo "[DETAIL] Post-Process: comparing '$NZBPP_CATEGORY' to '$CouchPotatoCategory' and '$SickBeardCategory'" ; fi if [ "$NZBPP_CATEGORY" = "$CouchPotatoCategory" ]; then if [ "$CouchPotato" = "yes" -a -e "$NzbToCouchPotato" ]; then + script=$NzbToCouchPotato # Call Couchpotato's postprocessing script echo "[INFO] Post-Process: Running CouchPotato's postprocessing script" if [ "$Debug" = "yes" ]; then @@ -120,6 +121,7 @@ nzbToMedia() { fi if [ "$NZBPP_CATEGORY" = "$SickBeardCategory" ]; then if [ "$SickBeard" = "yes" -a -e "$NzbToSickBeard" ]; then + script=$NzbToSickBeard # Call SickBeard's postprocessing script echo "[INFO] Post-Process: Running SickBeard's postprocessing script" if [ "$Debug" = "yes" ]; then @@ -141,16 +143,27 @@ do_exit() { if [ "$Debug" = "yes" ]; then echo "[DETAIL] Post-Process: Executing function 'do_exit' with argument $1" ; fi nzbStatus=0 if [ "$1" -ne "$POSTPROCESS_SUCCESS" ]; then nzbStatus=1 ; fi + script=none nzbToMedia $nzbStatus + Email_Subject="${Email_Subject//$NZBPP_NZBFILENAME}" + Email_Subject="${Email_Subject//$NZBPP_CATEGORY}" + Email_Subject="${Email_Subject/