Error running local groovy script

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Error running local groovy script

Post by pax0707 »

After last update with choco I've noticed amc wasnt working.
I call D:/Filebot/amc.groovy because I made some changes to it while back and this error started popping out.
dev:amc works fine.


Code: Select all

unknown protocol: d
java.net.MalformedURLException: unknown protocol: d
	at net.filebot.cli.ScriptSource$4.lambda$null$0(ScriptSource.java:84)
	at net.filebot.CachedResource.lambda$get$1(CachedResource.java:79)
	at net.filebot.Cache.computeIf(Cache.java:85)
	at net.filebot.CachedResource.get(CachedResource.java:78)
	at net.filebot.cli.ScriptSource$4.lambda$getScriptProvider$1(ScriptSource.java:84)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
	at net.filebot.Main.main(Main.java:120)
Failure (°_°)

Code: Select all

D:\Filebot>filebot -script fn:sysinfo   & pause
FileBot 4.7 (r3923)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.78
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.4.6
JRE: Java(TM) SE Runtime Environment 1.8.0_91
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 2 Core / 910 MB Max Memory / 22 MB Used Memory
OS: Windows 10 (amd64)
Package: MSI
Data: C:\Users\pax07\AppData\Roaming\FileBot
Done ?(?????)?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Error running local groovy script

Post by rednoah »

Fixed.
:idea: Please read the FAQ and How to Request Help.
mrargonavis
Posts: 2
Joined: 17 Jun 2016, 09:54

Re: Error running local groovy script

Post by mrargonavis »

Thank you.

But with the same scenario, I downloaded the Filebot.jar file from head (on Sourceforge), as it seems the fix is not yet packaged.

Now I get:

Code: Select all

No signature of method: Script1.detectSeriesName() is applicable for argument types: (java.io.File, java.lang.Boolean, java.lang.Boolean) 
Possible solutions: detectSeriesName(java.lang.Object, boolean), detectSeriesName(java.lang.Object)
        at Script1$_run_closure66.doCall(Script1.groovy:285)
        at Script1.run(Script1.groovy:271)
        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:114)
        at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
        at net.filebot.Main.main(Main.java:117)
On

Code: Select all

java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
And the OS is Windows 10.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Error running local groovy script

Post by rednoah »

Please use the latest version of filebot and the amc script. The error message indicates that your version of filebot is incompatible with the version of the amc script you're using.
:idea: Please read the FAQ and How to Request Help.
mrargonavis
Posts: 2
Joined: 17 Jun 2016, 09:54

Re: Error running local groovy script

Post by mrargonavis »

Thank you.
Post Reply