Page 1 of 1

[DOCS] Episode Part Number (aka Duplicate Index)

Posted: 17 Apr 2025, 19:57
by rednoah
If you have Episodes Split Across Multiple Files then you may use the {di} duplicate index and the {dc} duplicate count bindings to add a part identifier (e.g. part1, part2, etc) to each file if necessary depending on the situation at hand.


{di} ... duplicate index
{dc} ... duplicate count


e.g. add ", Part N" to the file name if the same episode is in the New Names list more than once:

Format: Select all

{ if (dc > 1) ", Part $di" }

e.g. if you are using the {plex} format then you can add support for multi-part episodes like so:

Format: Select all

{ plex.id % { if (dc > 1) ", Part $di" } }

Screenshot
:idea: Both House S06E01 files are matched to the same House - 6x01 - Broken episode. A format such as {plex} will therefore generate the same target file path for both House S06E01 files. Adding the {di} duplicate index to your format will allow you to generate a unique target file path for each file.