SyntaxError: unexpected char: '\'

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
najib1021
Posts: 9
Joined: 02 Feb 2013, 14:14

SyntaxError: unexpected char: '\'

Post by najib1021 »

Script in uTorrent :

Code: Select all

filebot -script fn:amc --output "E:/" --log-file "E:/amc.log" --action copy --conflict override -non-strict --def music=n subtitles=en artwork=n "ut_dir=E:\TV Shows\01 Seeding" "ut_file=Revolution.2012.S01E19.HDTV.x264-LOL.mp4" "ut_kind=single" "ut_title=Revolution.2012.S01E19.HDTV.x264-LOL.mp4" "ut_label=Revolution (2012)" "ut_state=11" --def "seriesFormat=TV Shows/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} - S{(episode.season ? s : 1).pad(2)}E{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’?]/, \"'\") .lowerTrail().replacePart(', Part $1')}" "movieFormat=Movies/{n}_{y}/{n} ({y}){\" CD$pi\"}

Output after uTorrent finish download I got :

Code: Select all

Parameter: music = n
Parameter: subtitles = en
Parameter: artwork = n
Parameter: ut_dir = E:\TV Shows\01 Seeding
Parameter: ut_file = Revolution.2012.S01E19.HDTV.x264-LOL.mp4
Parameter: ut_kind = single
Parameter: ut_title = Revolution.2012.S01E19.HDTV.x264-LOL.mp4
Parameter: ut_label = Revolution (2012)
Parameter: ut_state = 11
Parameter: seriesFormat = TV Shows/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} - S{(episode.season ? s : 1).pad(2)}E{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’?]/, \'\) .lowerTrail().replacePart(', Part $1')}
Parameter: movieFormat = Movies/{n}_{y}/{n} ({y}){" CD$pi\}
Input: E:\TV Shows\01 Seeding\Revolution.2012.S01E19.HDTV.x264-LOL.mp4
Group: [tvs:Revolution] => [Revolution.2012.S01E19.HDTV.x264-LOL.mp4]
Get [English] subtitles for 1 files
Looking up subtitles by filehash via OpenSubtitles
Matched [Revolution.2012.S01E19.HDTV.x264-LOL.mp4] to [Revolution.2012.S01E19.HDTV.X264-LOL] via filehash
Fetching [Revolution.2012.S01E19.HDTV.X264-LOL.srt]
Export [Revolution.2012.S01E19.HDTV.X264-LOL.srt] as: SubRip / UTF-8
Writing [Revolution.2012.S01E19.HDTV.X264-LOL.srt] to [Revolution.2012.S01E19.HDTV.x264-LOL.eng.srt]
ScriptException: SyntaxError: unexpected char: '\'
Done ヾ(@⌒ー⌒@)ノ
So, how to fix it..
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: SyntaxError: unexpected char: '\'

Post by rednoah »

The groovy expression is invalid. This looks off:

Code: Select all

\'\
You probably meant:

Code: Select all

/'/
:idea: Please read the FAQ and How to Request Help.
User avatar
najib1021
Posts: 9
Joined: 02 Feb 2013, 14:14

Re: SyntaxError: unexpected char: '\'

Post by najib1021 »

Thanks.. It's works without error.. :D
After uTorrent finish downloaded no need to remove (.eng) on subtitle manually..
Post Reply