I've cleared a couple of hurdles, but here's one I can't:
My AMC command:
Code: Select all
#!/bin/bash
/Applications/Filebot.app/Contents/MacOS/filebot.sh -script fn:amc --log-file amc.log --action copy -non-strict "$1" --conflict auto --def music=n subtitles=en artwork=y backdrops=y clean=y minLengthMS=30,000 plex=minion "movieFormat=/Volumes/Cinema/Cinema/{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /\$2, \$1/)}{n =~ y ? '' : \" (\$y)\"}/{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /\$2, \$1/)}{n =~ y ? '' : \" (\$y)\"} -{fn.match(/CD\d+/).upper()}{\" [\$resolution \$vc \$ac \$af]\"}" "seriesFormat=/Volumes/TV/Television/\"{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /\$2, \$1/)}{n =~ y ? '' : \" (\$y)\"}/{n} s{s.pad(2)}/{n} - {s00e00.lower()} - {t} - {\"[\$resolution \$vc \$ac \$af]\"}\"" "animeFormat=/Volumes/TV/Television/\"{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /\$2, \$1/)}{n =~ y ? '' : \" (\$y)\"}/{n} s{s.pad(2)}/{n} - {s00e00.lower()} - {t} - {\"[\$resolution \$vc \$ac \$af]\"}\""
Code: Select all
Parameter: music = n
Parameter: subtitles = en
Parameter: artwork = y
Parameter: backdrops = y
Parameter: clean = y
Parameter: minLengthMS = 30,000
Parameter: plex = minion
Parameter: movieFormat = /Volumes/Cinema/Cinema/{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)}{n
Parameter: seriesFormat = /Volumes/TV/Television/"{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)}{n
Parameter: animeFormat = /Volumes/TV/Television/"{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)}{n
Argument: /Volumes/Pond/Canal/The Can/Misfits Season 1-5/Misfits Season 5/Misfits.S05E06.HDTV.x264-TLA.mp4
Input: /Volumes/Pond/Canal/The Can/Misfits Season 1-5/Misfits Season 5/Misfits.S05E06.HDTV.x264-TLA.mp4
Group: [tvs:misfits] => [Misfits.S05E06.HDTV.x264-TLA.mp4]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Matched [Misfits.S05E06.HDTV.x264-TLA.mp4] to [Misfits.S05E06.Episode.6.720p.WEB-DL.AAC2.0.H.264-ECI-eng] via hash
Fetching [Misfits.S05E06.Episode.6.720p.WEB-DL.AAC2.0.H.264-ECI-eng.srt]
Export [Misfits.S05E06.Episode.6.720p.WEB-DL.AAC2.0.H.264-ECI-eng.srt] as: SubRip / UTF-8
Writing [Misfits.S05E06.Episode.6.720p.WEB-DL.AAC2.0.H.264-ECI-eng.srt] to [Misfits.S05E06.HDTV.x264-TLA.eng.srt]
javax.script.ScriptException: SyntaxError: missing token: }
Clean temporary extracted files
Delete /Volumes/Pond/Canal/The Can/Misfits Season 1-5/Misfits Season 5/Misfits.S05E06.HDTV.x264-TLA.eng.srt
Finished without processing any files
Failure (°_°)
FileBot 4.1
Mac OS X 10.7.5
java version "1.7.0_60"Java(TM) SE Runtime Environment (build 1.7.0_60-b19)Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
If anyone can see what's wrong, I'd be quite grateful
