Page 1 of 1

utorrent-postprocess.groovy errors..

Posted: 29 Oct 2012, 09:29
by larza
Hi,

I keep getting the following errors when running this script through filebot:

Code: Select all

MissingPropertyException: No such property: ut_title for class: Script3
groovy.lang.MissingPropertyException: No such property: ut_title for class: Script3
        at Script3.run(Script3.groovy:184)
        at net.sourceforge.filebot.cli.ScriptShell.evaluate(Unknown Source)
        at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
        at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
        at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (?_?)
Does not seem to impact anything except not sending email.. Any idea how to fix these errors?

Re: utorrent-postprocess.groovy errors..

Posted: 29 Oct 2012, 09:54
by rednoah
Well, I suppose you're not passing in ut_title as utorrent would do. Just add --def ut_title=something.

I'll add this patch some other time to make it figure out something by itself if you're using it in standalone:

Code: Select all

...
def renameLog = getRenameLog()
def emailTitle = tryQuietly { ut_title } ?: input*.dir.unique()

sendGmail(
	subject: "[FileBot] ${emailTitle}",
	message: XML {
		html {
			body {
				p("FileBot finished processing ${emailTitle} (${renameLog.size()} files).");
				hr(); table {
...
PS: You can use filebot -script svn:utorrent-postprocess ... to run with this patch right now.