Page 1 of 1

Episode Naming for "Specials"

Posted: 05 May 2019, 21:43
by Hercules40
I have a set of Simpson DVDs that has all the episodes but It also has "SPECIALS".

I use this code to transform episodes:

Code: Select all

F:\My Videos\Animated Shows\{n.replace(':',' -').replaceTrailingBrackets()}\{'Season '+s}\{n.replace(':',' -').replaceTrailingBrackets()} - {s+'x'}{e.pad(2)} - {t.replace(':',' -').replaceAll(/[!?.*]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', Part $1')}
But when it sorts through the "SPECIALS" episodes and the data I get back from TVDB, all I get is:
\Doctor Who\Doctor Who -- Twice Upon A Time.mp4
What I'd like to get is this:
\Doctor Who\Season 0\Doctor Who - 0x154 - Twice Upon A Time.mp4
PLEX recognizes Season 0 as "SPECIALS" whereas it can figure this one out:
\Doctor Who\Doctor Who -- Twice Upon A Time.mp4
What CODE do I use to accomplish this?

Thanks a lot for your help in advance.

Re: Episode Naming for "Specials"

Posted: 05 May 2019, 21:47
by rednoah
I recommend just using the {plex} binding which does everything you want implicitly:
viewtopic.php?f=5&t=4116

e.g.

Code: Select all

F:/My Videos/{plex}

Re: Episode Naming for "Specials"

Posted: 13 May 2019, 00:50
by Hercules40
Did not know that. Thanks for the tip!