Code: Select all
S:/Media Server/Unsorted/TV/{n.sortName('$2, $1').replaceAll(/[`´‘’?""“”]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!")}\{episode.special ? 'Season 00' : "Season ${s.pad(2)}"}\{n.upperInitial().lowerTrail().sortName('$2, $1').replaceAll(/[`´‘’?""“”]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!")} - {episode.special ? 's00e'+special.pad(2) : s00e00.lower()} - ({airdate.year}) - {t.upperInitial().lowerTrail().replaceAll(/[`´‘’?""“”]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!").replaceAll(/\b[IiVvXx]+\b/, {it.upper()})} - [{sdhd} {vf} {vc} {resolution}] [{ac} {af}]
For example:
Anything with an apostrophe+s will get a capital s, so words like it's become it'S. Same with words ending in 'll, such as you'll, become you'Ll. While other letters like (crap, I forgot now, lol) don't have that happen after the apostrophe.
I suspect something might have changed in the t.upperInitial().lowerTrail() function chain?
Code: Select all
t.upperInitial().lowerTrail().replaceAll(/[`´‘’?""“”]/, "'")
Code: Select all
S:/Media Server/Unsorted/TV
Currently using: FileBot 4.7.5 (r4600) / Java(TM) SE Runtime Environment 1.8.0_66 / Windows 10 10.0 (amd64)