Capitalise every 1st letter

All about user-defined episode / movie / file name format expressions
Post Reply
GameOverAus
Posts: 11
Joined: 09 Jan 2022, 22:47

Capitalise every 1st letter

Post by GameOverAus »

Sorry if this has already been asked. I did search and came up with nothing other then through google, but that response didn't clear it up enough for me.

Basically i just want to capitalise every 1st letter of each word not

e.g

Show name - s01e01 - Episode name
to
Show Name - S01E01 - Episode Name

Currently i use {n.replace(':',' -')} {s00e00} - {t} and the series/episode numbers are capitalised by default but the rest only the first letter of each type is capitalised unless the match is done correctly.
ie Show name - S01E01 - Episode name.

Add to that

using {n.replace(':',' - ') replaces shows that have : as the seperators in shows that have spinoffs ie Law & Order to -
e.g Law & Order: SVU, Law & Order: Organised Crime
Ignoring that Explorer wont even let you use : within a file name so dunno how they did that but regardless
if i use the above

Law & Order: First show etc. becomes Law & Order -First Show etc. Notice no space after the - and doesn't matter if i add the space after within the brackets yet the space before does add. SMH

Sorry if none of this makes any sense
Thanx in advance :)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Capitalise every 1st letter

Post by rednoah »

e.g.

Code: Select all

{ n.upperInitial() }
:arrow: https://www.filebot.net/naming.html
:idea: Please read the FAQ and How to Request Help.
Post Reply