Episode Naming for "Specials"

Support for Windows 10 users and the Microsoft Store package
Post Reply
Hercules40
Posts: 16
Joined: 15 Jun 2017, 00:46

Episode Naming for "Specials"

Post by Hercules40 » 05 May 2019, 21:43

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

Re: Episode Naming for "Specials"

Post by rednoah » 05 May 2019, 21:47

I recommend just using the {plex} binding which does everything you want implicitly:
https://www.filebot.net/forums/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: 16
Joined: 15 Jun 2017, 00:46

Re: Episode Naming for "Specials"

Post by Hercules40 » 13 May 2019, 00:50

Did not know that. Thanks for the tip!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests