Code: Select all
filebot -script fn:amc --output /output --def movieFormat=@"Z:/Movies & TV/_TO DO/MovieFormat.txt" --action duplicate --conflict auto -non-strict "Z:/Movies & TV/_TO DO/_NOT DONE" --log-file "Z:/Movies & TV/_TO DO/_AMC Log Files/amc.log" --def excludeList="Z:/Movies & TV/_TO DO/_AMC Log Files/amc_excludelist.txt" --def unsorted=y artwork=y storeReport=y clean=y
@pause
How can I escape this?
My movieformat.txt (saved here: Z:\Movies & TV\_TO DO) file contains this multiline code:
Code: Select all
movieFormat=Z:/Movies & TV/_TO DO/_DONE/
{hd.matches(/(?i)SD/) ? "480p-720p" : ""}
{hd.matches(/(?i)HD/) ? "720p-1080p" : ""}
{hd.matches(/(?i)UHD/) ? "4k" : ""}
/
{n.replace(':','-').replaceAll(/[\/:*?"<>|]/,' - ')}
({y})
{fn.matches(/(?i).+\b25th.+?anniv.+/) ? "(25th Anniv. Edition)" : ""}
{fn.matches(/(?i).+\b\(limited\b.*?\).+/) ? "(Limited Edition)" : ""}
{fn.matches(/(?i).+\b\(uncut\b.*?\).+/) ? "(Uncut)" : ""}
{fn.matches(/(?i).+\bcollector.+?s.+?edition\b.+/) ? "(Collector's Edition)" : ""}
{fn.matches(/(?i).+\bdirect.+?cut\b.+/) ? "(Director's Cut)" : ""}
{fn.matches(/(?i).+\bextended.+?\b.+/) ? "(Extended)" : ""}
{fn.matches(/(?i).+\bextended.+?edit\b.+/) ? "(Extended Edition)" : ""}
{fn.matches(/(?i).+\bimax\b.+/) ? "(IMAX Edition)" : ""}
{fn.matches(/(?i).+\blimited\b.+/) ? "(Limited)" : ""}
{fn.matches(/(?i).+\bremastered\b.+/) ? "(Remastered)" : ""}
{fn.matches(/(?i).+\bsuper.+duper.+cut\b.+/) ? "(Super Duper Cut)" : ""}
{fn.matches(/(?i).+\btheatrical\b.+/) ? "(Theatrical)" : ""}
{fn.matches(/(?i).+\bunrated\b.+/) ? "(Unrated)" : ""}
{any{fn.match(/\([^\()+?[^\d]+?\)\s*/)} {""}{''}}
{self.vf ? self.vf + "" : self.hpi}
{hd}
{"${self.source ?: 'WEB-DL'}"}
{fn.matches(/(?i).+\bremux\b.+/) ? "REMUX" : ""}
{ac}
{audio[0].channels.replaceAll(/^(\d{1}).*/,'$1').replaceAll(/2/, "2ch").replaceAll(/6/, "5.1ch").replaceAll(/7/, "6.1ch").replaceAll(/8/, "7.1ch").replaceAll(/Object.+.*/, "Object-Based 7.1ch")}
{vc}{
audio.collect { s ->
allOf
{any
{s.'CodecID/Hint'}
{s.'Codec'.contains('DTS-HD') ? s.'Codec': null}
{s.'Format'}
}
{s.'Format_Profile'}*.replaceAll('/ MA|/ Core|/ ES Matrix|/ TrueHD')*.replaceAll('AC-3', 'AC3').join('.')
}.flatten()*.trim().join(', ').matches(/(?i).*Atmos.*/) ? " TrueHD+Atmos" : ""
}_{any{"$group"}{fn.match(/(?<=[_-])[^\s_-]+?$/)}{'NA'}.replaceAll(/[-_\[\]]\s*|\.\w{3}$/, "")}
/
{n.replace(':','-').replaceAll(/[\/:*?"<>|]/,' - ')}
({y})
{fn.matches(/(?i).+\b25th.+?anniv.+/) ? "(25th Anniv. Edition)" : ""}
{fn.matches(/(?i).+\b\(limited\b.*?\).+/) ? "(Limited Edition)" : ""}
{fn.matches(/(?i).+\b\(uncut\b.*?\).+/) ? "(Uncut)" : ""}
{fn.matches(/(?i).+\bcollector.+?s.+?edition\b.+/) ? "(Collector's Edition)" : ""}
{fn.matches(/(?i).+\bdirect.+?cut\b.+/) ? "(Director's Cut)" : ""}
{fn.matches(/(?i).+\bextended.+?\b.+/) ? "(Extended)" : ""}
{fn.matches(/(?i).+\bextended.+?edit\b.+/) ? "(Extended Edition)" : ""}
{fn.matches(/(?i).+\bimax\b.+/) ? "(IMAX Edition)" : ""}
{fn.matches(/(?i).+\blimited\b.+/) ? "(Limited)" : ""}
{fn.matches(/(?i).+\bremastered\b.+/) ? "(Remastered)" : ""}
{fn.matches(/(?i).+\bsuper.+duper.+cut\b.+/) ? "(Super Duper Cut)" : ""}
{fn.matches(/(?i).+\btheatrical\b.+/) ? "(Theatrical)" : ""}
{fn.matches(/(?i).+\bunrated\b.+/) ? "(Unrated)" : ""}
{any{fn.match(/\([^\()+?[^\d]+?\)\s*/)} {""}{''}}
{self.vf ? self.vf + "" : self.hpi}
{hd}
{"${self.source ?: 'WEB-DL'}"}
{fn.matches(/(?i).+\bremux\b.+/) ? "REMUX" : ""}
{ac}
{audio[0].channels.replaceAll(/^(\d{1}).*/,'$1').replaceAll(/2/, "2ch").replaceAll(/6/, "5.1ch").replaceAll(/7/, "6.1ch").replaceAll(/8/, "7.1ch").replaceAll(/Object.+.*/, "Object-Based 7.1ch")}
{vc}{
audio.collect { s ->
allOf
{any
{s.'CodecID/Hint'}
{s.'Codec'.contains('DTS-HD') ? s.'Codec': null}
{s.'Format'}
}
{s.'Format_Profile'}*.replaceAll('/ MA|/ Core|/ ES Matrix|/ TrueHD')*.replaceAll('AC-3', 'AC3').join('.')
}.flatten()*.trim().join(', ').matches(/(?i).*Atmos.*/) ? " TrueHD+Atmos" : ""
}_{any{"$group"}{fn.match(/(?<=[_-])[^\s_-]+?$/)}{'NA'}.replaceAll(/[-_\[\]]\s*|\.\w{3}$/, "")}{any{'.'+lang}{lang}}{fn.matches(/(?i).+sdh.+/) ? "_SDH" : ""}{any{fn.match(/(?i)\(foreignpartsonly\)/)}{''}}{"."+ext}
Code: Select all
Illegal usage: output folder must exist and must be a directory: Z:\output
Failure (°_°)
Press any key to continue . . .
Thanks in advance.