[AMC] Force filebot to regornize file at Movies if duration is > to 1h15
Posted: 30 Mar 2017, 01:10
Hello.
Since i use filebot & inotify it doesn't specify labels so i tried to script something in AMC to force movies if lenght is superior to > 75 mins.
So i modified def forceMovie based on the lenght filter of forceAnime but i get this error :
Here is my modified forceMovie in AMC :
How i could fix it ? Thanks in advance !
Since i use filebot & inotify it doesn't specify labels so i tried to script something in AMC to force movies if lenght is superior to > 75 mins.
So i modified def forceMovie based on the lenght filter of forceAnime but i get this error :
Code: Select all
startup failed:
Script1.groovy: 61: expecting '}', found ')' @ line 61, column 164.
'{minutes}').toInteger() < 60) }{ false
^
1 error
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 61: expecting '}', found ')' @ line 61, column 164.
'{minutes}').toInteger() < 60) }{ false
^
1 error
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:122)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
at net.filebot.Main.main(Main.java:115)
Failure (°_°)
Code: Select all
def forceMovie(f) {
label =~ /^(?i:Movie|Film|Concert|UFC)/ || f.dir.listPath().any{ it.name ==~ /(?i:Movies|Movie)/ } || f.isMovie() || getMediaInfo(f, '{minutes}').toInteger() < 60) }{ false }))
}