Page 1 of 1

{plex} and pt1 pt2 etc

Posted: 04 Nov 2020, 10:38
by jchh
Hi,

{plex} does not seem to handle pt1, pt2 etc

Am I missing something?

The files that are not being matched/renamed with ptX are:

Code: Select all

- French and Saunders - s00e20 - pt1
- French and Saunders - s00e20 - pt2

Re: {plex} and pt1 pt2 etc

Posted: 04 Nov 2020, 11:53
by rednoah
FileBot does support multi-part movie files, but has no special awareness of multi-part episode files. The former is common. The latter is extremely uncommon.


:idea: That being said, your multi-part episode files will each be matched to the exact same Episode object, which we can assume to be multi-part episodes files in your case, so we can get the names we want simply appending the {di} duplicate index:

Code: Select all

{plex.derive{" (Part $di)"}}

:idea: Alternatively, you could just match the part number from the current file name:

Code: Select all

{plex.derive{fn.match(/ - pt[0-9]/)}}

Re: {plex} and pt1 pt2 etc

Posted: 04 Nov 2020, 12:34
by jchh
fantastic - thanks for such quick help!