Plex has strict standards for naming and organizing your media files.
Code: Select all
Movies/Avatar (2009)/Avatar (2009)
TV Shows/Alias/Season 01/Alias - S01E01 - Truth Be Told
Code: Select all
{plex}

Since the {plex} binding will give you a File object, it's easy to reuse some path components and omit others. {plex.name} and {plex.tail} are particularly useful if you want to rename files in place or if you want the {plex} path without the top-level Movies or TV Shows folder.
e.g. Avatar (2009)
Code: Select all
{plex.name}
Code: Select all
{plex.tail}
Code: Select all
{plex[1]}/{plex[3]}
Code: Select all
{plex.derive{" {imdb-$imdbid}"}}
Code: Select all
{plex.derive{" {tmdb-$id}"}}
Code: Select all
{plex.derive{" by $director"}{" [$vf, $vc, $ac]"}}


Kodi Naming Standard
The {kodi} binding and the {plex} binding work exactly the same, with slightly different implementation details, e.g. SxE formatting and multi-episode formatting.
Emby Naming Standard
The {emby} binding and the {plex} binding work exactly the same, with slightly different implementation details, e.g. series name and series folder formatting.
Custom Naming Schemes
If you need to make very specific customizations to the standard Plex naming scheme, you'll want you write your own format expression so you have full control over all the bits and pieces. You can get started by copying the following examples and modifying them to your liking.
Movies
Code: Select all
Movies/{n} ({y})/{n} ({y}){' CD'+pi}{'.'+lang}
Code: Select all
TV Shows/{n}/{episode.special ? 'Specials' : 'Season '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}
Code: Select all
Anime/{primaryTitle}/{primaryTitle} - {sxe} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, /'/).replacePart(', Part $1')}
Code: Select all
Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}