Page 1 of 1

groovy.lang.MissingMethodException with latest amc.groovy and Filebot 4.8.2

Posted: 28 Mar 2019, 10:24
by nilicule
Hi,

I've recently upgraded my older installation of Filebot (v4.7.7) to the latest version (v4.8.2) and am running into problems with AMC. The folder in which AMC is located is a full git clone of the Filebot scripts repo.

filebot -script fn:sysinfo:

Code: Select all

FileBot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 18.12
7-Zip-JBinding: 9.20
Chromaprint: 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-02-26 (r552)
Groovy: 2.5.1
JRE: OpenJDK Runtime Environment 1.8.0_201
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 24 MB Used Memory
OS: Linux (amd64)
HW: Linux rtx.niliplex 3.10.0-957.10.1.el7.x86_64 #1 SMP Mon Mar 18 15:06:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
DATA: /home/flow/bin/filebot/data/flow
Package: TAR
License: FileBot License PX7401065 (Valid-Until: 2069-03-28)
Filebot command line arguments:

Code: Select all

~/bin/filebot/filebot.sh -script /home/flow/bin/filebot.scripts/amc.groovy --output "/opt/plex" --action duplicate --conflict skip -non-strict --log-file amc.log --def "seriesFormat=opt/plex/series/{n}/{'S'+s}/{fn}" "movieFormat=/opt/plex/movies/{ny}/{fn}" unsorted=y subtitles=en,nl music=n artwork=y ut_dir="The.Enemy.Within.S01E05.720p.HDTV.x264" ut_kind="multi"
And the output:

Code: Select all

Locking /home/flow/bin/filebot/data/flow/logs/amc.log
Run script [/home/flow/bin/filebot.scripts/amc.groovy] at [Thu Mar 28 10:21:31 UTC 2019]
Parameter: seriesFormat = opt/plex/series/{n}/{'S'+s}/{fn}
Parameter: movieFormat = /opt/plex/movies/{ny}/{fn}
Parameter: unsorted = y
Parameter: subtitles = en,nl
Parameter: music = n
Parameter: artwork = y
Parameter: ut_dir = The.Enemy.Within.S01E05.720p.HDTV.x264
Parameter: ut_kind = multi
Input: /home/flow/incoming/The.Enemy.Within.S01E05.720p.HDTV.x264/The.Enemy.Within.S01E05.720p.HDTV.x264-AVS.mkv
Group: [Series:the enemy within] => [The.Enemy.Within.S01E05.720p.HDTV.x264-AVS.mkv]
No signature of method: net.filebot.media.AutoDetection$Group.isAnime() is applicable for argument types: () values: []
Possible solutions: anime(java.util.List), getAnime(), size(), size(), isCase(java.lang.Object), isCase(java.lang.Object)
groovy.lang.MissingMethodException: No signature of method: net.filebot.media.AutoDetection$Group.isAnime() is applicable for argument types: () values: []
Possible solutions: anime(java.util.List), getAnime(), size(), size(), isCase(java.lang.Object), isCase(java.lang.Object)
	at Script1$_run_closure52.doCall(Script1.groovy:351)
	at Script1.run(Script1.groovy:349)
	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:154)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:36)
	at net.filebot.Main.main(Main.java:131)

Failure (°_°)
Is this a bug in the script or am I overlooking something blatantly obvious?

Thanks in advance for any help.

Re: groovy.lang.MissingMethodException with latest amc.groovy and Filebot 4.8.2

Posted: 28 Mar 2019, 15:19
by rednoah
1.
If you use -script fn:amc then it'll work. You'll get the script matching your version of FileBot.


2.
If you're using the latest scripts revision from the repository, then you'll also need the latest FileBot revision:
viewtopic.php?f=6&t=9535

Re: groovy.lang.MissingMethodException with latest amc.groovy and Filebot 4.8.2

Posted: 28 Mar 2019, 16:05
by nilicule
Hi rednoah,
If you use -script fn:amc then it'll work. You'll get the script matching your version of FileBot.
Awesome, much appreciated - that indeed did the trick. I think I mistakenly read the commandline argument -script [script.groovy] as to support a filepath.

Thanks for clearing that up!

Re: groovy.lang.MissingMethodException with latest amc.groovy and Filebot 4.8.2

Posted: 28 Mar 2019, 17:01
by rednoah
You can run local scripts, but if you do that then you need to make sure you check out a specific script revision that's compatible with the revision of FileBot you're running. You'd typically use it if you have your own scripts that you maintain yourself.