Invalid Identifier issue
Posted: 27 Apr 2017, 02:44
Hello,
I've been facing an issue since yesterday. Whenever I try to run my script, I get an invalid identifier error. I did check the script for spaces in between seriesFormat and = and there weren't any. I've attached my script and a log as well. Please help me out.
Script:
Args:
Error:
Any help would be appreciated. Thank you!
I've been facing an issue since yesterday. Whenever I try to run my script, I get an invalid identifier error. I did check the script for spaces in between seriesFormat and = and there weren't any. I've attached my script and a log as well. Please help me out.
Script:
Code: Select all
filebot -script fn:amc --action move --conflict skip -non-strict --log-file "D:\filebotScript\filebotMediaRenameBatch\TV\amcTV.log" "D:\filebotScript\tvInput" --def @D:\filebotScript\filebotMediaRenameBatch\TV\amcArgsTV.txt
Code: Select all
seriesFormat=D:\filebotScript\renamed\{n.replaceTrailingBrackets().sortName().upperInitial().space(' ').replaceAll(/\b[IiVvXx]+\b/, { it.upper() })} ({y})/{episode.special ? 'Special' : 'Season '+s}/{n.sortName().upperInitial().replaceTrailingBrackets().space(' ').replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)} - {episode.special ? 'S00E'+special.pad(2) : s00e00.lower()} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'") .lowerTrail().replacePart(', Part $1').replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() }).replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)}{'.'+lang} [{vf} {vc.replace('HEVC','x265').replace('X265','x265')} {ac} {af.replace('8ch','7.1').replace('7ch','7.1').replace('6ch','5.1').replace('5ch','5.1').replace('3ch','2.1').replace('2ch','2.1')}]
unsorted=y
artwork=y
subtitles=en
storeReport=y
reportError=y
deleteAfterExtract=y
clean=y
plex=localhost:RzwxzAjtNXdnGTkcNB2k
ut_label=Series
Code: Select all
"seriesFormat" is not a valid identifier