Page 1 of 1

No signature of method: java.io.File.watch

Posted: 02 Sep 2016, 02:51
by Redbull10927
I am using the "watcher.groovy" script along with my own script and it always outputs

Code: Select all

No signature of method: java.io.File.watch() is applicable for argument types: (Script1$_run_closure1) values: [Script1$_run_closure1@626abbd0]
Possible solutions: with(groovy.lang.Closure), each(groovy.lang.Closure), wait(), wait(long), toPath(), any()
groovy.lang.MissingMethodException: No signature of method: java.io.File.watch() is applicable for argument types: (Script1$_run_closure1) values: [Script1$_run_closure1@626abbd0]
Possible solutions: with(groovy.lang.Closure), each(groovy.lang.Closure), wait(), wait(long), toPath(), any()
	at Script1.run(Script1.groovy:4)
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:113)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:28)
	at net.filebot.Main.main(Main.java:124)
Failure (°_°)
The script i have to work with it is

Code: Select all

#!/bin/sh

filebot -script fn:watcher /home/josh/Downloads --action test -non-strict --def seriesFormat="/home/josh/Videos/TV Shows/{n}/{'Season '+s}/{n} - {s00e00} - {t}"
I have no idea whats going wrong. Linux Mint 16, Filebot 4.7.2

Re: No signature of method: java.io.File.watch

Posted: 02 Sep 2016, 02:55
by rednoah
I recommend using system tools like inotify to watch files and then call FileBot commands accordingly.

Re: No signature of method: java.io.File.watch

Posted: 02 Sep 2016, 03:04
by Redbull10927
So I cannot use the watcher script, or is it alot of work to use?

Re: No signature of method: java.io.File.watch

Posted: 02 Sep 2016, 13:51
by rednoah
It's been deprecated for years, and I guess now it's finally broken.

Please use inotify-tools and the amc script.