Plex Jellyfin Editions with Multi Tags / Matching
Posted: 22 Sep 2022, 06:05
Hi, I've tried a bit and searched around but haven't figured out a way to correctly match parts of a string of tags at a time.
Please help
3 initial matches
Starting point for the Editions Tag (I use both Jellyfin and Plex so I combine the formats)
This works but only if I match all 3 at the same time, so I know I'm doing something wrong but I don't know what would fix it.
I'm assuming it has something to do with the "$"
Update: Just saw your link to viewtopic.php?t=12643 Not sure if this will solve my problem but I'll take a look at that.
Please help

3 initial matches
Code: Select all
{fn.matchAll(/Unrated|\[UR\]/)?'UR':''}
{fn.matchAll(/DirectorsCut|Director.*Cut|Director'sCut|\[DC]/)?' DC':''}
{fn.matchAll(/ExtendedEdition|\[EE\]|\[Extended\]|Extended|\[Ext\]/)?' Ext':''}
Code: Select all
{" - [{edition-${}]"}
I'm assuming it has something to do with the "$"

Code: Select all
{" - [{edition-${fn.matchAll(/Unrated|\[UR\]/)?'UR':''}${fn.matchAll(/DirectorsCut|Director.*Cut|Director'sCut|\[DC]/)?' DC':''}${fn.matchAll(/ExtendedEdition|\[EE\]|\[Extended\]|Extended|\[Ext\]/)?' Ext':''}}]"}