[SNIPPET] The movie {tags} binding AKA movie {edition} binding

All about user-defined episode / movie format expressions
Post Reply
User avatar
rednoah
The Source
Posts: 21076
Joined: 16 Nov 2011, 08:59

[SNIPPET] The movie {tags} binding AKA movie {edition} binding

Post by rednoah »

  • The {tags} binding allows you to match predefined patterns from the file name.
  • The {edition} binding will additionally check for and prefer preexisting {edition-XYZ} patterns. (requires FileBot r9289)


e.g. {tags} binding as List value:

Code: Select all

{tags}

Code: Select all

[Directors Cut, Remastered, Unrated]


e.g. {tags} binding as String value:

Code: Select all

{ tags.join('-').upper() }

Code: Select all

DIRECTORS CUT-REMASTERED-UNRATED


(requires FileBot r9289) e.g. {edition} binding as String value:

Code: Select all

{edition}

Code: Select all

[Directors Cut]


e.g. {tags} as Plex / Multiple Editions tag:

Code: Select all

{ "{edition-${tags[0]}}" }

Code: Select all

{edition-Directors Cut}


(requires FileBot r9289) e.g. {edition} as Plex / Multiple Editions tag:

Code: Select all

{ "{edition-$edition}" }

Code: Select all

{edition-Directors Cut}


{tags} and {edition}match the following patterns:

Code: Select all

(?:Special.|Extended.|Ultimate.)?(?:Director.?s|Collector.?s|Theatrical|Ultimate|Final|Extended|Rogue|Special|Diamond|Despecialized|R.Rated|Super.Duper|(?:(?:1st|2nd|3rd|[4-9]th).)?Anniversary).(?:Cut|Edition|Version)|Extended|Theatrical|Remastered|Recut|Uncut|Uncensored|Unrated|IMAX|Alternate.Ending


:arrow: Please read Match information from the file path if you want to match custom patterns from the file name.
:idea: Please read the FAQ and How to Request Help.
Post Reply