Add edition to the movie folder name when using the plex format?

All about user-defined episode / movie / file name format expressions
Post Reply
ryleybob
Posts: 1
Joined: 15 Sep 2025, 04:06

Add edition to the movie folder name when using the plex format?

Post by ryleybob »

The Open Matte part is not needed and wont be moving forward. Though I am in need of haveing the top folder include the edition, with tmdb after it. Director is also not moving forward as I have never used it when looking for or at the files.

My need is /{ vf =~ /2160p/ ? '4K Movies' : 'Movies' } As I keep them in separate folders. But I want to keep edition movies in their own folder. As in with "{plex.id} {edition-$edition} " maybe if possible have the tmdb at the end i guess I would have to not use {plex.id}. "{plex} {edition-$edition} {tmdb-$tmdbid}" something like that? (no clue if it's correctly setup as it's just thoughts). Then have file names plex ready with my choice of vf, vcf, HDR and so on. Also I need one exactly the same but it adds the year to series as {plex.id} doesn't include the year the show came out but it does for movies.
User avatar
rednoah
The Source
Posts: 24312
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Add edition to the movie folder name when using the plex format?

Post by rednoah »

I guess you could start with these examples:
rednoah wrote: 12 Sep 2016, 10:03 e.g. Avatar (2009) [M19995]/Avatar (2009)

Format: Select all

{ ~plex * " [M$id]" }
e.g. Avatar (2009) {tmdb-19995}/Avatar (2009) {edition-Extended Edition} [720p, x264, AAC]

Format: Select all

{ ~plex.id % { " {edition-$edition}" } % { " [$vf, $vc, $ac]" } }

And then modify it to your needs:

Format: Select all

/path/to/
{ vf =~ /2160p/ ? '4K Movies' : 'Movies' }/
{ ~plex.year.id * { " {edition-$edition}" } % { allOf{ vf }{ vcf }{ hdr } } }

Please let me know if this format does what you mean to do. We can evolve the code step by step as needed.
:idea: Please read the FAQ and How to Request Help.
Post Reply