Search found 130 matches: conditional

Searched query: +conditional

by rednoah
18 Mar 2026, 11:22
Forum: Windows
Topic: How to move bluray folders to separate folder?
Replies: 1
Views: 1804

Re: How to move bluray folders to separate folder?

:idea: The target file path is entirely up to your custom format. Did you read Conditional Structures (if-then-else) yet?



I'm thinking of an "if/then" command that, during renaming, moves Blu-rays (or ISO, or DVDs) into separate folders

:?: How do you know if a given file / folder is a BD / DVD ...
by rednoah
05 Feb 2026, 04:08
Forum: Help and Support
Topic: Jellyfin compatible naming scheme : audio type
Replies: 5
Views: 13871

Re: Jellyfin compatible naming scheme : audio type

... to do what you want? We previously established lots of building blocks that you can use, and can modify to fit your needs as necessary.



e.g. Conditional Structures (if-then-else) to do various checks one after another and return the first value that fits any of your checks:
{
// If an audio ...
by rednoah
11 Jan 2026, 18:47
Forum: Episode / Movie Naming Scheme
Topic: Different output folders depending on the genre?
Replies: 4
Views: 2385

Re: Folders

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/' }
by rednoah
22 Nov 2025, 09:26
Forum: Synology NAS & Embedded Linux
Topic: Movies/Series/TV Shows
Replies: 20
Views: 10795

Re: Movies/Series/TV Shows

... guess is that you mean to differentiate Documentary-type TV shows (i.e. Séries ) from other not-Documentary-type TV shows (i.e. Emissions ) so a Conditional Structure (if-then-else) is in order to generate different folder paths depending on the TV show at hand:
{ "Documentary" in genres ? "Séries ...
by rednoah
15 Jul 2025, 14:34
Forum: Episode / Movie Naming Scheme
Topic: [{vc}] IF it is using h.264
Replies: 2
Views: 23682

Re: [{vc}] IF it is using h.264

:idea: You can use Conditional Structures (if-then-else) like so:

e.g. add {vc} video codec if {vcf} video codec standard is AVC aka h.264 :
{ if (vcf == /AVC/) ' [' + vc + ']' }

e.g. add [NOT HEVC] if {vcf} is not HEVC :
{ if (vcf != /HEVC/) ' [NOT HEVC]' }
↑↑ this probably better captures ...
by rednoah
09 Jul 2025, 17:25
Forum: Windows
Topic: AMC windows question
Replies: 4
Views: 28970

Re: AMC windows question

... any other. Your format can still move different episodes into different folders depending on the genre, keywords, origin country, etc by using Conditional Structures (if-then-else) to generate different file paths (e.g. some with a TV Shows folder, some with a Anime folder) as desired.

:idea ...
by rednoah
04 Mar 2025, 09:47
Forum: Synology NAS & Embedded Linux
Topic: [ENTRYPOINT] Help creating custom automation (Noob)
Replies: 5
Views: 32680

Re: Help creating custom automation (Noob)

... VR / etc differently from other content, assuming there is some way to tell which is which. The {s3d} binding, the MediaInfo Inspector , and Conditional Structures (if-then-else) will get you started.


B.
FileBot does not have the concept of a confidence score. You'll want to use Strict Mode if ...
by rednoah
11 Jan 2025, 15:43
Forum: Episode / Movie Naming Scheme
Topic: Conditional titles using {localize} based on unique audio tracks
Replies: 3
Views: 3384

Re: Conditional titles using {localize} based on unique audio tracks

:arrow: I think you mean to name files based on the original language according to the database, and not the audio stream language:
{ language ==~ /deu/ ? localize.de.n : n }


:arrow: Checking if the file only contains German language audio streams is of course possible too:
{ audioLanguages ...
by ye62dzec
11 Jan 2025, 01:52
Forum: Episode / Movie Naming Scheme
Topic: Conditional titles using {localize} based on unique audio tracks
Replies: 3
Views: 3384

Re: Conditional titles using {localize} based on unique audio tracks

This works almost perfectly. Is there a way to check whether it's the only languague?

This movie is not correctly renamed:

Code: Select all

N:\Filme\Flüstern des Meeres - Ocean Waves (1994) - [DE, JA] [1080p x264] [5.1GB]\Flüstern des Meeres - Ocean Waves (1994) - [DE, JA] [1080p x264] [5.1GB].mkv
by ye62dzec
10 Jan 2025, 14:32
Forum: Episode / Movie Naming Scheme
Topic: Conditional titles using {localize} based on unique audio tracks
Replies: 3
Views: 3384

Conditional titles using {localize} based on unique audio tracks

... know I can use the {localize} binding for German titles, but I'm not sure how to combine this with a check of unique {audioLanguages} to make it conditional. Can you help me modify my format to implement this logic?

Currently getting:
[deu]/[DE] → Should use German title
anything else → Should keep ...
by rednoah
10 Aug 2024, 04:25
Forum: Help and Support
Topic: Help with sorting to different drives
Replies: 4
Views: 9846

Re: Help with sorting to different drives

e.g.

Format: Select all

{ vc == 'x264' ? 'F:/Movies (x264)' : 'I:/Movies' }/{ ~plex.id }
:arrow: Conditional Structures (if-then-else)
by SergeiAK
01 Aug 2024, 16:20
Forum: Episode / Movie Naming Scheme
Topic: How can i use "if" whith Filebot for choosing right title?
Replies: 11
Views: 14634

Re: How can i use "if" whith Filebot for choosing right title?

... available in TMDB i prefer English instead original title.
For example this Italian movie: Gli ultimi giorni di Pompei (1959). TMDB has not Russian titles.
I understand how Conditional Structures works, but my question is how to set condition: if title in Russian is not found in TMDB or TVDB......
by rednoah
01 Aug 2024, 10:40
Forum: Episode / Movie Naming Scheme
Topic: How can i use "if" whith Filebot for choosing right title?
Replies: 11
Views: 14634

Re: How can i use "if" whith Filebot for choosing right title?

:?: Do you have a specific example? Which movie? Which non-English language?


e.g. Pan's Labyrinth (2006) in Spanish

Format: Select all

{
	language =~ /spa/ ? primaryTitle : n
}

Code: Select all

El laberinto del fauno

:arrow: Conditional Structures (if-then-else)
by rednoah
21 Jun 2024, 03:50
Forum: Windows
Topic: Simply append the letters "4K" to a filename after renaming
Replies: 5
Views: 6741

Re: Simply append the letters "4K" to a filename after renaming

... you'll want do start with something like this:
{ plex.id % { if (height > 2000) ' [4K]' } }
NOTE: In this case, we do not simply append "4K" to the file name, and instead only add "4K" to video files that actually have a 4K video resolution. See Conditional Structures (if-then-else) for details.
by rednoah
04 Jun 2024, 09:21
Forum: Episode / Movie Naming Scheme
Topic: Plex Id Derive with Edition Tag
Replies: 3
Views: 4282

Re: Plex Id Derive with Edition Tag

Everything is always possible, this one is easy too:

Format: Select all

{ edition != 'Remastered' ? " {edition-$edition}" : null }

Format: Select all

{ none{ edition.match(/Extended|Theatrical|Remastered/) } ? " {edition-$edition}" : null }
:arrow: Conditional Structures (if-then-else)
by rednoah
02 Mar 2024, 03:08
Forum: Episode / Movie Naming Scheme
Topic: Renaming all folder/files but {vf} syntax error
Replies: 6
Views: 4666

Re: Renaming all folder/files but {vf} syntax error

:arrow: Moving files to different folders based on some condition is very easy. See Conditional Structures (if-then-else) for details and examples:

e.g. Move 4K movies and normal movies into different folders:
{ height > 2000 ? '4K Movies' : 'Movies' }




:arrow: If you want to only select ...
by rednoah
21 Nov 2023, 10:59
Forum: Scripting and Automation
Topic: sort series movies with genre in different folder
Replies: 5
Views: 6399

Re: sort series movies with genre in different folder

Yes, you can use {genres} to access the list of genres from the database and the generate file paths accordingly.


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

e.g. Move Documentary episodes and normal TV series episodes into different folders:
{ genre ==~ /Documentary|News/ ? 'Documentaries' : 'TV ...
by zhyp
05 Nov 2023, 04:51
Forum: Help and Support
Topic: Rename subs with lang codes to {vs}{vf} without causing problems
Replies: 2
Views: 1953

Rename subs with lang codes to {vs}{vf} without causing problems

... only the seriessub.eng, causing a big problem (even overwriting some language codes along the way), resulting on something like this at the end: "seriessub.eng [1080p-BluRay].srt".
I did thinker with conditional statements, but couldn't get it to work properly without causing extra problems.
Thanks.
by rednoah
24 Sep 2023, 11:15
Forum: Episode / Movie Naming Scheme
Topic: Match Single Genre Documentary Movies
Replies: 4
Views: 2428

Re: Match Single Genre Documentary Movies

... example? i.e. TMDB link for one movie that only has "Documentary" in the genre list, and another that has multiple genres?


In general, Conditional Structures (if-then-else) can be arbitrarily complex and check for multiple things if that's what you want:
{ genres[0] == 'Documentary ...
by rednoah
13 Sep 2023, 09:12
Forum: unRAID & docker
Topic: Audiobookshelf - Folder/File Format
Replies: 14
Views: 32513

Re: Audiobookshelf - Folder/File Format

... Author/Title(year)/Title

Possible. But how do you know if a book is part of a series of books? Based on ID3 Tags ? Based on file name patterns? Based on other files in the same folder? Anything is possible, if you can express the condition in code .

:arrow: Conditional Structures (if-then-else)
by Xvonmox
20 Aug 2023, 22:44
Forum: Scripting and Automation
Topic: No Matching Genre - How to file in separate folder
Replies: 8
Views: 6764

Re: No Matching Genre - How to file in separate folder

What if you are trying to include a conditional argument IF a genre exists?
For example FileBot gives off the following error when trying to reference the {genre} tag in the naming format on the TV Show "Parking Wars".
Binding "genre": NoSuchElementException

Using your example from above...

{any ...
by yellowdaemon
24 Jul 2023, 15:43
Forum: Scripting and Automation
Topic: Empty CD folder (When use format)
Replies: 38
Views: 15807

Re: Empty CD folder (When use format)

... False, 'translate artist names': False, 'line 1': {'source': 'album_soloists, album_ensembles, album_conductors', 'tag': 'artist, artists', 'conditional': False}, 'line 2': {'source': 'recording_artists', 'tag': 'artist, artists', 'conditional': True}, 'line 3': {'source': 'soloist_names ...