Page 1 of 1

SyntaxError: unexpected char: '\'

Posted: 06 Jun 2013, 06:42
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..

Re: SyntaxError: unexpected char: '\'

Posted: 16 Jun 2013, 01:13
by rednoah
The groovy expression is invalid. This looks off:

Code: Select all

\'\
You probably meant:

Code: Select all

/'/

Re: SyntaxError: unexpected char: '\'

Posted: 16 Jun 2013, 19:22
by najib1021
Thanks.. It's works without error.. :D
After uTorrent finish downloaded no need to remove (.eng) on subtitle manually..