Search found 9 matches

by Franky
04 Nov 2023, 16:51
Forum: Episode / Movie Naming Scheme
Topic: [SNIPPET] Collecting audio tracks by format, handles commentary tracks seperately
Replies: 0
Views: 8638

[SNIPPET] Collecting audio tracks by format, handles commentary tracks seperately

Example:
The Fellowship of the Ring
Track 1: 6ch E-AC3 Atmos English
Track 2: 6ch E-AC3 Atmos German
Track 3-6: Commentary tracks

Result: [5.1 AC3+ Atmos (eng deu)][Commentary x4]

{
import java.math.RoundingMode
import net.filebot.Language

audio.findAll{
it.Title =~ /^(?i:(?!comment ...
by Franky
26 Sep 2023, 10:54
Forum: Episode / Movie Naming Scheme
Topic: Custom functions?
Replies: 2
Views: 1642

Re: Custom functions?

Cool, thanks!
by Franky
26 Sep 2023, 08:27
Forum: Episode / Movie Naming Scheme
Topic: Custom functions?
Replies: 2
Views: 1642

Custom functions?

Can I define my own custom functions, and then call them from a different expression? For example, I have a custom expression for HDR type, and if I make changes to that code, I need to manually update all my expressions. My hope would be that I can define this in only one place, and then just ...
by Franky
10 Sep 2023, 07:24
Forum: Episode / Movie Naming Scheme
Topic: Quick question about leading "The"
Replies: 2
Views: 1520

Quick question about leading "The"

When I have a title with both "The" at the start AND a sub-title, for example "The Mummyː Tomb of the Dragon Emperor (2008)", it currently moved the "The" to the end of the complete title, like this "Mummyː Tomb of the Dragon Emperor, The (2008)"
I'd prefer to put the moved "The" to before the ...
by Franky
19 Dec 2022, 06:03
Forum: Help and Support
Topic: If a file has a {edition-(whatever)} section then copy it, otherwise add such a section if there are relevant {tags}
Replies: 2
Views: 3438

If a file has a {edition-(whatever)} section then copy it, otherwise add such a section if there are relevant {tags}

I'm trying to get this logic working:
1. If a file has a {edition-(whatever)} section, copy it.
2. Else, add such a section if there are relevant {tags}.
3. Do nothing.

So far, I've tried
{fn.match(/ \{edition-.*\}/) ? fn.match(/ \{edition-.*\}/) : " {edition-${tags[0]}}"}
This works for the ...
by Franky
01 Apr 2021, 10:44
Forum: Episode / Movie Naming Scheme
Topic: Check for multiple languages
Replies: 2
Views: 3344

Re: Check for multiple languages

Thank you! I solved it now like this:

Code: Select all

{if (audioLanguages.size() > 1) ', Multilang'}
by Franky
31 Mar 2021, 18:32
Forum: Episode / Movie Naming Scheme
Topic: Check for multiple languages
Replies: 2
Views: 3344

Check for multiple languages

I want an expression that checks the languages of the audio, and if there exists audio of two or more different languages, outputs the string "Multilang". Any ideas on how that could be done?