Different output folders depending on the genre?

All about user-defined episode / movie / file name format expressions
Post Reply
phileeny
Posts: 3
Joined: 11 Jan 2026, 15:46

Different output folders depending on the genre?

Post by phileeny »

I have been using Filebot for a long time and I have been using different formats for different files, but now I want to set up one format for all.
Currently I use this for my ripped discs "

Format: Select all

Y:/Discs/{vf}/{az}/{collection}/{plex.name} [{vf == /2160p/ ? '4kUHD' : vf == /1080p/ ? 'Blu-ray' : 'dvd'}]
but what I want is the following:

Format: Select all

Y:/Disc Media/Film/{az}/{vf}/{collection}/{plex.name} [{vf == /2160p/ ? '4kUHD' : vf == /1080p/ ? 'Blu-ray' : 'dvd'}]
but I want the Film folder to change depending on if its a Film or a Documentary or Music, I tried "genre(s)" but that didn't work, is there a way to do this other then renaming the "Film" folder each time
User avatar
rednoah
The Source
Posts: 24369
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Folders

Post by rednoah »

phileeny wrote: 11 Jan 2026, 16:06 I tried "genre(s)" but that didn't work
:?: What have you tried? What didn't work? What movie(s) did you run tests with?


e.g. Conditional Structures (if-then-else)

Format: Select all

{ genres ==~ /Documentary|News/ ? 'U:/Documentaries/' : 'T:/TV Shows/' }
:idea: Please read the FAQ and How to Request Help.
phileeny
Posts: 3
Joined: 11 Jan 2026, 15:46

Re: Folders

Post by phileeny »

usung {genre} I would get Y:/Disc Media/Documentary/0-9/2040 (2019) [dvd] for the film 2040 (2019) which is a Documentary
using {genres} I would get Y:/Disc Media/[Documentary, Music]/V/The Velvet Underground (2021) [Blu-ray] I would want just Music
using {genre} I would get Y:/Disc Media/Music/T/The Tubular Bells 50th Anniversary Tour (Live At The Royal Festival Hall) (2022) [Blu-ray] which is what I want
using (genre} or {genres} I would get Y:/Disc Media/[Science Fiction, Horror]/S/Scanners Collection/Scanners (1981) [4kUHD] but not just Film

basically if the disc is Music it goes to Y:/Disc Media/Music/ folder, if its a Documentary it goes to Y:/Disc Media/Documentary/ Documentary folder and if its a Film it goes to Y:/Disc Media/Film/ folder
User avatar
rednoah
The Source
Posts: 24369
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Folders

Post by rednoah »

:idea: {genres} and {genre} simply give you the genres / genre. You can then use those values to express your custom logic which defines which genres map to which folders.


e.g. Genre Music goes to Folder Music (even if it's a Documentary as well) and Genre Documentary goes to Folder Documentary, and everything else (that has at least 1 genre) goes to Folder Film, and if the movie at hand has no genres at all (rare but possible) then there will be no extra folder at all:

Format: Select all

{
	genres.match('Music': 'Music', 'Documentary': 'Documentary') ?: 'Film'
}
/
{
	~plex.id
}

Code: Select all

Music/The Velvet Underground (2021) {tmdb-543836}/The Velvet Underground (2021)
Music/The Tubular Bells 50th Anniversary Tour (Live At The Royal Festival Hall) (2022) {tmdb-997400}/The Tubular Bells 50th Anniversary Tour (Live At The Royal Festival Hall) (2022)
Film/Scanners (1981) {tmdb-9538}/Scanners (1981)
Documentary/2040 (2019) {tmdb-575788}/2040 (2019)
:idea: Please read the FAQ and How to Request Help.
phileeny
Posts: 3
Joined: 11 Jan 2026, 15:46

Re: Different output folders depending on the genre?

Post by phileeny »

Thanks rednoah I didn't know about the ".match" part of genres, now I know if I come across any files with add or no genres I can deal with them.
Thanks again
Post Reply