[DOCS] Episode Part Number (aka Duplicate Index)

All about user-defined episode / movie / file name format expressions
Post Reply
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[DOCS] Episode Part Number (aka Duplicate Index)

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply