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 (°_°)
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}"