[DOCS] The movie {tags} and movie {edition} bindings

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

[DOCS] The movie {tags} and movie {edition} bindings

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


:idea: {tags} and {edition} are filename-based bindings.



: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.
jprokos
Posts: 189
Joined: 09 Oct 2016, 02:01

Re: [DOCS] The movie {tags} and movie {edition} bindings

Post by jprokos »

For Plex/Multiple Editions tag... "[" and "]" will not be accepted yet they are built into your tags format. Text in square brackets are ignored.

Plex gives this as the proper format:
/Media
/Movies
Blade Runner (1982) {edition-Director's Cut}.mp4
Blade Runner (1982) {edition-Final Cut}.mp4
I have to use this to make it work with Plex

Code: Select all

{edition-'+tags.toString().replace('[','').replace(']','')+'}'
:?: How to search for "DC" in a filename, coming after a four digit year, and transform that into "Directors Cut" for editions while using plex.id.derive?

Code: Select all

{plex.id.derive{' {edition-'+tags.toString().replace('[','').replace(']','')+'}' }
Post Reply