* force online dependencies in AMC script
This commit is contained in:
parent
49d644db55
commit
d8751ea088
|
@ -138,7 +138,7 @@ if (excludeList) {
|
||||||
input.each{ f -> _log.finest("Input: $f") }
|
input.each{ f -> _log.finest("Input: $f") }
|
||||||
|
|
||||||
// artwork/nfo utility
|
// artwork/nfo utility
|
||||||
if (artwork || xbmc || plex) { include('lib/htpc') }
|
if (artwork || xbmc || plex) { include('fn:lib/htpc') }
|
||||||
|
|
||||||
// group episodes/movies and rename according to XBMC standards
|
// group episodes/movies and rename according to XBMC standards
|
||||||
def groups = input.groupBy{ f ->
|
def groups = input.groupBy{ f ->
|
||||||
|
@ -299,12 +299,12 @@ if (plex) {
|
||||||
// mark episodes as 'acquired'
|
// mark episodes as 'acquired'
|
||||||
if (myepisodes) {
|
if (myepisodes) {
|
||||||
_log.info 'Update MyEpisodes'
|
_log.info 'Update MyEpisodes'
|
||||||
executeScript('update-mes', [login:myepisodes.join(':'), addshows:true], getRenameLog().values())
|
executeScript('fn:update-mes', [login:myepisodes.join(':'), addshows:true], getRenameLog().values())
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pushover) {
|
if (pushover) {
|
||||||
// include webservice utility
|
// include webservice utility
|
||||||
include('lib/ws')
|
include('fn:lib/ws')
|
||||||
|
|
||||||
_log.info 'Sending Pushover notification'
|
_log.info 'Sending Pushover notification'
|
||||||
Pushover(pushover).send("Finished processing ${tryQuietly { ut_title } ?: input*.dir.name.unique()} (${getRenameLog().size()} files).")
|
Pushover(pushover).send("Finished processing ${tryQuietly { ut_title } ?: input*.dir.name.unique()} (${getRenameLog().size()} files).")
|
||||||
|
@ -313,7 +313,7 @@ if (pushover) {
|
||||||
// send status email
|
// send status email
|
||||||
if (gmail) {
|
if (gmail) {
|
||||||
// ant/mail utility
|
// ant/mail utility
|
||||||
include('lib/ant')
|
include('fn:lib/ant')
|
||||||
|
|
||||||
// send html mail
|
// send html mail
|
||||||
def renameLog = getRenameLog()
|
def renameLog = getRenameLog()
|
||||||
|
@ -369,7 +369,7 @@ if (clean) {
|
||||||
cleanerInput = cleanerInput.findAll{ f -> f.exists() }
|
cleanerInput = cleanerInput.findAll{ f -> f.exists() }
|
||||||
if (cleanerInput.size() > 0) {
|
if (cleanerInput.size() > 0) {
|
||||||
_log.info 'Clean clutter files and empty folders'
|
_log.info 'Clean clutter files and empty folders'
|
||||||
executeScript('cleaner', args.empty ? [root:true] : [root:false], cleanerInput)
|
executeScript('fn:cleaner', args.empty ? [root:true] : [root:false], cleanerInput)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue