01x01 - Title (capitalized)

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

01x01 - Title (capitalized)

Post by Metrix84 » 20 Aug 2018, 20:46

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 » 21 Aug 2018, 00:20

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: 14528
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Preset Editor

Post by rednoah » 21 Aug 2018, 04:17

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

Who is online

Users browsing this forum: No registered users and 5 guests