Make AMC Match Capitalization from Scraper

All about user-defined episode / movie format expressions
Post Reply
Yousty
Posts: 11
Joined: 07 Mar 2017, 13:40

Make AMC Match Capitalization from Scraper

Post 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()}
kim
Power User
Posts: 1046
Joined: 15 May 2014, 16:17

Re: Make AMC Match Capitalization from Scraper

Post 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
User avatar
rednoah
The Source
Posts: 19128
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Make AMC Match Capitalization from Scraper

Post 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. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply