Hi
Pretty new to this, but how can I get sthis to work:
{n} - {s00}x{e00} - {t}
I would like the season to consist of 2 numbers: 01, 02 etc.
Naming TV shows
Re: Naming TV shows
Isn't that what s00 gives you by default? What have you tried so far?
Re: Naming TV shows
I can't use s00, it says "Binding "s00": undefined
Re: Naming TV shows
it's
or
NOT
BTW:
=
=
does
Code: Select all
{n} - {s00e00} - {t}
Code: Select all
{n} - {s.pad(2)+'x'+e.pad(2)} - {t}
Code: Select all
{n} - {s.pad(2)}x{e.pad(2)} - {t}
Code: Select all
{n} - {s00}x{e00} - {t}
BTW:
Code: Select all
{sxe.pad(2)}
Firefly - 1x01 - Serenity
Code: Select all
{sxe.pad(5)}
Firefly - 01x01 - Serenity
does
do nothing or why not pad the season part also ?.pad(2)
Re: Naming TV shows
1.
1x01 is a 4 character String, and thus only String.pad(5) will add a 0 in front of that String.
2.
{s.pad(2)} {e.pad(2)} will give you 2-character padded values for any Integer / String value. However, you will loose support for formatting multi-part episodes and specials.
I highly recommend just using {s00e00} which implicitly takes care of many corner cases you might not have thought of.
1x01 is a 4 character String, and thus only String.pad(5) will add a 0 in front of that String.
2.
{s.pad(2)} {e.pad(2)} will give you 2-character padded values for any Integer / String value. However, you will loose support for formatting multi-part episodes and specials.

Re: Naming TV shows
Thanbk you so much, I'll play around a bit - and may end up using {s00e00}, I just prefer the x 

Re: Naming TV shows
Does this make sense to you?
Code: Select all
{s00e00.replace('S', '').replace('E', 'x')}