Page 1 of 1

Different output folders depending on the genre?

Posted: 11 Jan 2026, 16:06
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

Re: Folders

Posted: 11 Jan 2026, 18:47
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/' }

Re: Folders

Posted: 12 Jan 2026, 05:35
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

Re: Folders

Posted: 12 Jan 2026, 06:01
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)

Re: Different output folders depending on the genre?

Posted: 12 Jan 2026, 18:41
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