Page 1 of 1

Plex Id Derive with Edition Tag

Posted: 31 Mar 2024, 01:47
by milopalmer
I'm using the following expression and am wondering how to adjust it to include the edition tag on the folder as well as the filename? Right now it's only included in the filename.

Code: Select all

{ ~plex.id.derive{" {tmdb-$id} "} } { "edition-$edition}" }
Results in:

Code: Select all

/300 (2007) {tmdb-1271}/300 (2007) {tmdb-1271} {edition-Extended Edition}...
Desired:

Code: Select all

/300 (2007) {tmdb-1271} {edition-Extended Edition}/300 (2007) {tmdb-1271} {edition-Extended Edition}...
Thanks!

Re: Plex Id Derive with Edition Tag

Posted: 31 Mar 2024, 05:40
by rednoah
rednoah wrote: 12 Sep 2016, 10:03 e.g. Avatar (2009) {tmdb-19995} {edition-Extended Edition}/Avatar (2009) {edition-Extended Edition}
Multiple Editions

Format: Select all

{ ~plex.id ** { " {edition-$edition}" } }
:arrow: Plex Naming Schemes › Advanced {plex} operators



e.g. start with the example above, and then add {tmdb-12345} to the file / folder name as well:

Format: Select all

{ ~plex ** {" {tmdb-$tmdbid} "} ** {" {edition-$edition}"} }

Re: Plex Id Derive with Edition Tag

Posted: 04 Jun 2024, 08:25
by milopalmer
Late follow-up question, is it possible to omit/ignore edition pattern names, such as Remastered, while continuing to use {edition} binding? Thanks again!

Re: Plex Id Derive with Edition Tag

Posted: 04 Jun 2024, 09:21
by rednoah
Everything is always possible, this one is easy too:

Format: Select all

{ edition != 'Remastered' ? " {edition-$edition}" : null }

Format: Select all

{ none{ edition.match(/Extended|Theatrical|Remastered/) } ? " {edition-$edition}" : null }
:arrow: Conditional Structures (if-then-else)