Make better script
Posted: 18 May 2019, 02:59
I'm have multiple "fileinfo" parts in my script and I want to make it use the same code for all, BUT I really need help with this one ?
https://github.com/filebot/scripts/blob ... roovy#L294
somthing like
stuff I have looked at but can't make use of:
http://groovy-lang.org/processing-xml.html
https://mrhaki.blogspot.com/2010/04/gro ... ation.html
https://mrhaki.blogspot.com/2009/10/gro ... -with.html
https://stackoverflow.com/questions/614 ... ilder-node
http://docs.groovy-lang.org/latest/html ... ilder.html
https://www.tutorialspoint.com/groovy/groovy_xml.htm
btw, maybe we can use mkp.yieldUnescaped() e.g. on:
https://github.com/filebot/scripts/blob ... roovy#L151
https://github.com/filebot/scripts/blob ... roovy#L294
somthing like
Code: Select all
def xml = XML {
movie {
title(i.name)
getFileInfo()
}
}
http://groovy-lang.org/processing-xml.html
https://mrhaki.blogspot.com/2010/04/gro ... ation.html
https://mrhaki.blogspot.com/2009/10/gro ... -with.html
https://stackoverflow.com/questions/614 ... ilder-node
http://docs.groovy-lang.org/latest/html ... ilder.html
https://www.tutorialspoint.com/groovy/groovy_xml.htm
btw, maybe we can use mkp.yieldUnescaped() e.g. on:
https://github.com/filebot/scripts/blob ... roovy#L151