Page 1 of 1
Problem: cf binding returns fla instead of flac.
Posted: 10 Feb 2026, 10:58
by Engelmancer
Hopefully this is a straightforward issue as I couldn't see any reference to it in the change notes.
When using {cf} on FLAC audio files Filebot 5.2.1, the field returns fla instead of flac as in previous versions. I spent 10 minutes trying to work out why files we're appearing in my library then spotted the new folder it had created.
Thanks
Re: Problem: cf binding returns fla instead of flac.
Posted: 10 Feb 2026, 11:10
by rednoah

What does the
MediaInfo table say for the file at hand?

Newer versions of FileBot use the
Format/Extensions property. We need
{cf} to return
mkv and not
Matroska hence the change. A change in behaviour for
*.flac files
(NOTE: both *.flac and *.fla are valid FLAC file extensions) would be an unfortunate side-effect here.

Do you need to identify files based on the file content? i.e. fix missing or wrong file extensions? You could try
{media.Format} for that:

If you need the file extension in your custom format then you can use
{ext} to access the current file extension:
Re: Problem: cf binding returns fla instead of flac.
Posted: 10 Feb 2026, 11:49
by Engelmancer
Media Table info:
https://pastebin.com/KuDGWdg4
I'm just using the binding to sort my library into audio format types so both solutions would be valid.
Re: Problem: cf binding returns fla instead of flac.
Posted: 10 Feb 2026, 11:59
by rednoah
Yep, that would do it.
{cf} would return
fla for this file:
Properties: Select all
Format/Extensions : fla flac

I strongly recommend using
{ext} to just grab the current file extension from the current file path. If you compare only
{ext} and
{media.Format} then
{ext} would be infinitely faster since the file path is already in memory while reading mediainfo requires reading file contents which is slower by multiple magnitudes. That said, if FileBot is already reading the mediainfo table for some other bindings
(e.g. bitrate, duration, etc) then there wouldn't be a noticeable difference.