01x01 - Title (capitalized)

All about user-defined episode / movie / file name format expressions
Post Reply
Metrix84
Posts: 2
Joined: 20 Aug 2018, 20:40

01x01 - Title (capitalized)

Post by Metrix84 »

Hi all,

First time to the forum, so be gentle.

Apologies if this is in the wrong area of the forum.

I'm currently trying to encode my TV collection for my NAS but have become stuck when realising that the naming option is correct but just not as I like it. I'll elaborate, I'm hoping to have the preset so it specifies 01x01 - Title (but make sure that all each first letter is capitalised) EG. The Quick Brown Fox Jumped Over The Lazy Dog.

The way that I appear to have this setup in the preset editior is:

{s00e00} - upperInitial(t)

Can anyone help me out with this as I've tried many different variations to no gain and it's driving me nuts.

Thanks in advance.

Metrix84
Metrix84
Posts: 2
Joined: 20 Aug 2018, 20:40

Re: Preset Editor

Post by Metrix84 »

So after reaching out to a fantastic member of the discord group @Mrbucket101 they helped me with the code which I will place below incase anyone else needs to see it.

Code: Select all

{s.pad(2)}x{e.pad(2)} - {t.upperInitial()}
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Preset Editor

Post by rednoah »

Note that your solution does not take specials into account. I recommend just using the built-in {sxe} or {sxe.pad(5)} if you must have 0-padded season numbers.

Code: Select all

{sxe}

Code: Select all

{sxe.pad(5)}
:idea: Please read the FAQ and How to Request Help.
Post Reply