Page 1 of 1

01x01 - Title (capitalized)

Posted: 20 Aug 2018, 20:46
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

Re: Preset Editor

Posted: 21 Aug 2018, 00:20
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()}

Re: Preset Editor

Posted: 21 Aug 2018, 04:17
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)}