[CODE] Editing amc script to modify pushover notification
Posted: 04 Nov 2014, 12:49
I've located the string that formulates the rename log for the notification message, and I'd like to modify it to draw the output filename instead.
I'm not sure which values to substitute here to simply have the output instead of input file name.
Code: Select all
if (getRenameLog().size() > 0) {
// messages used for xbmc / plex / pushover notifications
def getNotificationTitle = { "FileBot finished processing ${getRenameLog().values().findAll{ !it.isSubtitle() }.size()} files" }.memoize()
def getNotificationMessage = { prefix = '• ', postfix = '\n' -> tryQuietly{ ut_title } ?: (input.any{ !it.isSubtitle() } ? input.findAll{ !it.isSubtitle() } : input).collect{ relativeInputPath(it) as File }*.getRoot()*.getNameWithoutExtension().unique().sort{ it.toLowerCase() }.collect{ prefix + it }.join(postfix).trim() }.memoize()