Trying to run AMC script from file instead of github

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
arl1984
Posts: 2
Joined: 11 Dec 2015, 21:38

Trying to run AMC script from file instead of github

Post 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 (°_°)
User avatar
rednoah
The Source
Posts: 19140
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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. ;)
:idea: Please read the FAQ and How to Request Help.
asc3nti0n
Posts: 6
Joined: 28 Dec 2015, 04:10

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

Post 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.
Post Reply