AMC - Log update
Posted: 02 Jul 2017, 20:18
When using e.g. --def movieFormat=@"movieFormat.groovy"
the log will show ALL the format code from "movieFormat.groovy"
... so I updated to show like this:
Can you make this official or if not just write how you would write the code ?
the log will show ALL the format code from "movieFormat.groovy"
... so I updated to show like this:
my code (Maybe not pretty, but it works):Parameter: movieFormat = [[email protected]]
Code: Select all
def formatType = []
_args.args.each{ n -> n =~ /=@/ ? formatType << n :'' }
_def.each{ n, v -> log.finest('Parameter: ' + [n, n =~ /plex|kodi|pushover|pushbullet|mail|myepisodes|.+Format/ ? n =~ /.+Format/ ? formatType : '*****' : v].join(' = ')) }