From 8466c7cb1bfc607ccc6d500b10c9be4b254aaf1a Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 6 Jan 2013 04:03:59 +0000 Subject: [PATCH] * skip notifications if nothing was renamed anyway --- website/scripts/utorrent-postprocess.groovy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/website/scripts/utorrent-postprocess.groovy b/website/scripts/utorrent-postprocess.groovy index e327ca52..b8125361 100644 --- a/website/scripts/utorrent-postprocess.groovy +++ b/website/scripts/utorrent-postprocess.groovy @@ -187,7 +187,10 @@ groups.each{ group, files -> } } - +// skip notifications if nothing was renamed anyway +if (getRenameLog().isEmpty()) { + return +} // make xbmc or plex scan for new content xbmc?.each{ @@ -207,7 +210,7 @@ if (myepisodes) { } // send status email -if (gmail && !getRenameLog().isEmpty()) { +if (gmail) { // ant/mail utility include('fn:lib/ant')