Page 1 of 1

Make AMC Match Capitalization from Scraper

Posted: 11 May 2020, 16:01
by Yousty
I've noticed that AMC is ignoring the scraper's capitalization and just capitalizing the first letter of each word. For instance: "The.Last.Dance.S01E08.Episode.VIII" gets renamed to "The Last Dance - 1x08 - Episode Viii"

Is there any way to make the script match the capitalization from the scraper?

Here is the script I'm using:

Code: Select all

TV Shows/{n}/Season {s.pad(2)}/{n.replaceTrailingBrackets()} - {s+'x'}{e.pad(2)} - {t.replaceAll(/[?.]+$/).replaceAll(/[`´‘’ʻ]/, "'") .lowerTrail()}

Re: Make AMC Match Capitalization from Scraper

Posted: 11 May 2020, 20:38
by kim
hint: play around in the GUI, a format is the same (amc format = GUI format)

Code: Select all

TV Shows/{n}/Season {s.pad(2)}/{n.replaceTrailingBrackets()} - {s+'x'}{e.pad(2)} - {t.replaceAll(/[?.]+$/).replaceAll(/[`´‘’ʻ]/, "'") .lowerTrail() }
btw:

Code: Select all

{ kodi }
=
TV Shows/The Last Dance/Season 01/The Last Dance - 1x08 - Episode VIII

Code: Select all

{ plex }
=
TV Shows/The Last Dance/Season 01/The Last Dance - S01E08 - Episode VIII

Re: Make AMC Match Capitalization from Scraper

Posted: 12 May 2020, 06:35
by rednoah
It is your custom format, and not FileBot default behaviour, that is responsible for modifying the original title value:

Code: Select all

"VIII".lowerTrail() // result: Viii

:arrow: Best to use {kodi} or {plex} as explained by kim. The latter is default. The former might be more suitable for you if you prefer SxE patterns.


:idea: If you choose to use custom formats, then it's best to use the GUI for rapid prototyping, as you would immediately see what a format expression does step by step as you write it, and issues like this would have been immediately obvious. ;)