Page 1 of 1

Trying to run AMC script from file instead of github

Posted: 02 Jan 2016, 16:20
by arl1984
filebot -script "/home/user/scripts/amc.groovy" --output "/media/shares/disk2/media" --action move --def subtitles=en --def clean=y --def unsorted=y -non-strict "/media/shares/disk2/downloads" --def excludeList=amc.txt

returns

Code: Select all

MultipleCompilationErrorsException: startup failed:
Script1.groovy: 5: unexpected token: < @ line 5, column 1.
   <!DOCTYPE html>
   ^

1 error

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 5: unexpected token: < @ line 5, column 1.
   <!DOCTYPE html>
   ^

1 error

        at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:61)
        at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
        at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:116)
        at net.filebot.Main.main(Main.java:169)
Failure (°_°)

Re: Trying to run AMC script from file instead of github

Posted: 02 Jan 2016, 16:50
by rednoah
If you're trying to run a HTML page as Groovy script then you're doing something horribly wrong... Just stick with the default fn:amc if you don't know what you're doing. ;)

Re: Trying to run AMC script from file instead of github

Posted: 03 Jan 2016, 00:25
by asc3nti0n
I recently installed filebot on Mac OS Darwin, via some convoluted process and it's on... but the ~/Documents/filebot/Groovy Scripts/ folder had three groovy's in there, but they were HTML text versions of the actual groovy script... and using Mac OS X TextEdit.app copying the "raw" code from Github produced the same result, it wouldn't convert the result of the Github table to just the text within.

I installed "Sublime Text 2".app to handle my Groovy editing. No more issues with HTML formatting permeating into the raw code.