Unable to move THE to end of file name.
Posted: 14 May 2016, 01:06
Hi everyone,
I am trying to get the CLI of filebot on a linux setup to move the beginning word (The,A, An) to the rear of the title. I copied from this
viewtopic.php?f=5&t=211
but for some reason it deletes the file name leaving only a comma.
Any help is appreciated.
I am trying to get the CLI of filebot on a linux setup to move the beginning word (The,A, An) to the rear of the title. I copied from this
viewtopic.php?f=5&t=211
Code: Select all
filebot -script fn:amc "/home/linux/mnt/Film.Pool/T/Test/" --def "movieFormat=/home/linux/mnt/Film.Pool/{n =~ /^(?i)[a-z]/ ? n[0] : '#'}/{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)} ({y}){' '+[vf]}/{n.upperInitial()} {' '+[vf]}{'.'+[vc]}{'.'+[ac]}{'.'+[af]}{'.'+[source]}{'.'+[group]}..."
Any help is appreciated.