[SOLVED] Ubuntu/Deluge:Script3.groovy: 1: unexpected token

All your suggestions, requests and ideas for future development
Post Reply
Doogie
Posts: 5
Joined: 27 Mar 2014, 14:08

[SOLVED] Ubuntu/Deluge:Script3.groovy: 1: unexpected token

Post by Doogie »

Hello,

I'm using FileBot on Ubuntu 12.04 for a while now, where Deluge starts a script after finalising any torrent download.
Suddenly, this simple script seems to return an error, for no obvious reason.

Code: Select all

#!/bin/bash
TORRENT_ID=$1
TORRENT_NAME=$2
TORRENT_PATH=$3
filebot -script fn:amc --output "$HOME/Videos" --log-file amc.log --action copy --conflict override -non-strict --def artwork=y "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"

 

Error in amc.log:

Code: Select all

MultipleCompilationErrorsException: startup failed:
Script3.groovy: 1: unexpected token: < @ line 1, column 1.
   <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
   ^

1 error

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script3.groovy: 1: unexpected token: < @ line 1, column 1.
   <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
   ^

1 error

	at net.sourceforge.filebot.cli.ScriptShell.evaluate(ScriptShell.java:102)
	at net.sourceforge.filebot.cli.ScriptShell.runScript(ScriptShell.java:95)
	at net.sourceforge.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:125)
	at net.sourceforge.filebot.Main.main(Main.java:190)
Failure (°_°)
any idea what could have changed to produce this behaviour?

thanks!
Doogie
Last edited by Doogie on 27 Mar 2014, 15:05, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 23066
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Ubuntu/Deluge:Script3.groovy: 1: unexpected token

Post by rednoah »

Time to upgrade to FileBot 4.0 ;)
:idea: Please read the FAQ and How to Request Help.
Doogie
Posts: 5
Joined: 27 Mar 2014, 14:08

Re: Ubuntu/Deluge:Script3.groovy: 1: unexpected token

Post by Doogie »

ugh... that's all? shame on me... :(

will do so, thanks for your heads up!
User avatar
rednoah
The Source
Posts: 23066
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Ubuntu/Deluge:Script3.groovy: 1: unexpected token

Post by rednoah »

Well, the problem is unrelated, but if you use FileBot 4.0 this particular issue can't happen. ;)
:idea: Please read the FAQ and How to Request Help.
Doogie
Posts: 5
Joined: 27 Mar 2014, 14:08

Re: Ubuntu/Deluge:Script3.groovy: 1: unexpected token

Post by Doogie »

thx, problem solved
User avatar
zen343
Posts: 3
Joined: 04 Mar 2014, 13:07

Re: [SOLVED] Ubuntu/Deluge:Script3.groovy: 1: unexpected tok

Post by zen343 »

Hi... Im getting a similar error (started on 25- march-2014)

Code: Select all

ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script4.groovy: 1: unexpected token: < @ line 1, column 1.
   <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
I'm using filebot 3.8-1. Suggestion to upgrade to 4.0 noted with thanks - however its on my Synology NAS installed using missilehuggers package - which now no longer seems accessible (getting a 404 when visiting packages.missilehugger.com).

Any ideas on how I could get things up and running again?

Thanks
Synology NAS/DS211+/DSM 4.2-3211
User avatar
rednoah
The Source
Posts: 23066
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [SOLVED] Ubuntu/Deluge:Script3.groovy: 1: unexpected tok

Post by rednoah »

Use the portable package and just set it up yourself. You have to use it via CLI anyway so using .spk doesn't make much of a difference and you don't have to wait for updates neither.
:idea: Please read the FAQ and How to Request Help.
abmoraz
Posts: 4
Joined: 02 May 2014, 04:34

Re: Ubuntu/Deluge:Script3.groovy: 1: unexpected token

Post by abmoraz »

rednoah wrote:Time to upgrade to FileBot 4.0 ;)
Will 4.0 be available from the Ubuntu Software Center soon?
User avatar
rednoah
The Source
Posts: 23066
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [SOLVED] Ubuntu/Deluge:Script3.groovy: 1: unexpected tok

Post by rednoah »

Hopefully, I submitted it 2 months ago.
:idea: Please read the FAQ and How to Request Help.
Post Reply