Problem: cf binding returns fla instead of flac.

All your suggestions, requests and ideas for future development
Post Reply
Engelmancer
Posts: 2
Joined: 10 Feb 2026, 10:53

Problem: cf binding returns fla instead of flac.

Post 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
User avatar
rednoah
The Source
Posts: 24438
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Problem: cf binding returns fla instead of flac.

Post by rednoah »

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


:idea: 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:

Format: Select all

{ media.Format }

:idea: If you need the file extension in your custom format then you can use {ext} to access the current file extension:

Format: Select all

{ ext }
:idea: Please read the FAQ and How to Request Help.
Engelmancer
Posts: 2
Joined: 10 Feb 2026, 10:53

Re: Problem: cf binding returns fla instead of flac.

Post 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.
User avatar
rednoah
The Source
Posts: 24438
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Problem: cf binding returns fla instead of flac.

Post by rednoah »

Yep, that would do it. {cf} would return fla for this file:

Properties: Select all

Format/Extensions          : fla flac


:idea: 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply