* skip notifications if nothing was renamed anyway

This commit is contained in:
Reinhard Pointner 2013-01-06 04:03:59 +00:00
parent a7ea715836
commit 8466c7cb1b
1 changed files with 5 additions and 2 deletions

View File

@ -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')