Page 1 of 1

Help setting up naming convention for PLEX and Kometa

Posted: 11 Jun 2024, 12:46
by NonSpecific
Hey guys,

New to the forum here, but need some help. I know next to nothing about coding or scripting but have managed to come up with this basic script which names movies and tags them.

Format: Select all

{ drive }/Media/{ plex.id * " [" * {vf} * "] " * "[" * { hdr.replace('HDR10+':'HDR10Plus') } * "]"}
Let say there is something with no HDR, this is what it gives me:

Code: Select all

Y:/Media/Movies/Fight Club (1999) {tmdb-550} [1080p] []/Fight Club (1999)
I do not want the [] on the end if there is no HDR present.

Any help would be greatly appreciated!!

Also if anyone is willing to just completely overhaul this as well, would also be greatly appreciated :)

Re: Help setting up naming convention for PLEX and Kometa

Posted: 11 Jun 2024, 13:01
by rednoah
e.g.

Format: Select all

{ drive }/
Media/
{
	plex.id
	* { ' [' + vf + ']' }
	* { ' [' + hdr.replace('+':'Plus') + ']' }
}
:arrow: See Learn how {expressions} work and useful Helper Functions for details.

:arrow: See {plex} format for examples.