Episode Naming for "Specials"

Support for Windows users
Post Reply
Hercules40
Posts: 32
Joined: 15 Jun 2017, 00:46

Episode Naming for "Specials"

Post 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.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Episode Naming for "Specials"

Post 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}
:idea: Please read the FAQ and How to Request Help.
Hercules40
Posts: 32
Joined: 15 Jun 2017, 00:46

Re: Episode Naming for "Specials"

Post by Hercules40 »

Did not know that. Thanks for the tip!
Post Reply