Add (1) (2) part numbers to the episode title

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

Add (1) (2) part numbers to the episode title

Post by rednoah »

The {plex} format automatically removes (1) (2) (1/2) part numbers from the end of the episode title. If you want to keep the (1) (2) part numbers then you can either inject them into {plex} or just use {t} in your own custom format.


e.g. Stargate SG-1 - S01E01 - Children of the Gods (1)

Format: Select all

{n} - {s00e00} - {t}

e.g. Stargate SG-1 - S01E01 - Children of the Gods (1)

Format: Select all

{ plex.id % { " (" + t.match(/[(]([0-9]+)[)]/) + ")" } }

e.g. Stargate SG-1 - S01E01 - Children of the Gods, Part 1

Format: Select all

{ plex.id % { ", Part " + t.match(/[(]([0-9]+)[)]/) } }
:idea: Please read the FAQ and How to Request Help.
Post Reply