Multi-Part / Multi-File Episode Support
Posted: 05 Mar 2015, 22:20
Hi,
Some of the older media in my library comprises single episodes split across multiple files. For example:
Keys To The VIP - Season 01 - Episode 05 (Part 1)
Keys To The VIP - Season 01 - Episode 05 (Part 2)
I would like to convert these files to be named:
Keys To The VIP 01x05 - Mark Sparks Vs. Kyle 'The Diesel' (Part 1/2)
Keys To The VIP 01x05 - Mark Sparks Vs. Kyle 'The Diesel' (Part 2/2)
At present, I am using the following code, which correctly retains the part number information (through fn.match) but does not provide the part count:
Example outputs:
Keys To The VIP 01x05 - Mark Sparks Vs. Kyle 'The Diesel' (Part 1)
Keys To The VIP 01x05 - Mark Sparks Vs. Kyle 'The Diesel' (Part 2)
Is there a way to add the part count? I note that the codes pi and pn only work for movies whereas I am dealing with television in this instance.
Many thanks,
James
Some of the older media in my library comprises single episodes split across multiple files. For example:
Keys To The VIP - Season 01 - Episode 05 (Part 1)
Keys To The VIP - Season 01 - Episode 05 (Part 2)
I would like to convert these files to be named:
Keys To The VIP 01x05 - Mark Sparks Vs. Kyle 'The Diesel' (Part 1/2)
Keys To The VIP 01x05 - Mark Sparks Vs. Kyle 'The Diesel' (Part 2/2)
At present, I am using the following code, which correctly retains the part number information (through fn.match) but does not provide the part count:
Code: Select all
{n.upperInitial()}/{'Season '+s.pad(2)}/{n.upperInitial()} {s.pad(2)}x{es*.pad(2).join('-')} - {t.upperInitial().replacePart(replacement = ', Part $1')}{" "+fn.match(/\(Part \d+\)/)}
Keys To The VIP 01x05 - Mark Sparks Vs. Kyle 'The Diesel' (Part 1)
Keys To The VIP 01x05 - Mark Sparks Vs. Kyle 'The Diesel' (Part 2)
Is there a way to add the part count? I note that the codes pi and pn only work for movies whereas I am dealing with television in this instance.
Many thanks,
James