[DOCS] Holistic formats with the {episodelist} binding

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

[DOCS] Holistic formats with the {episodelist} binding

Post by rednoah »

The {episodelist} binding allows you to access the complete list of episodes for the series at hand.


e.g. highest episode number:

Format: Select all

{ episodelist.absolute.max() }

e.g. series years from the airdate of the first episode to the airdate of the last episode:

Format: Select all

{ episodelist.airdate.year.bounds().join('-') }

e.g. primaryTitle (i.e. AniDB x-jat series name for Anime; different seasons may have different AniDB series names) of the first episode / first season:

Format: Select all

{ episodelist[0].primaryTitle }

e.g. use {episodelist} to mark the final episode in each season:

Format: Select all

{ plex % { episode == episodelist.findAll{ s == it.s }.episode.last() ? ' [END OF SEASON]' : null } }

e.g. use {episodelist} and {model} to mark the series folder as complete if all known episodes of a given show are being processed in the current batch:

Format: Select all

{ plex * { model.episode.containsAll(episodelist.episode) ? ' [complete]' : ' [incomplete]' } }
:idea: Please read the FAQ and How to Request Help.
Post Reply