freac icon indicating copy to clipboard operation
freac copied to clipboard

Album art pattern issue

Open damajor opened this issue 2 months ago • 1 comments

Describe the bug Including a dot in the Album Art pattern makes it uneffective.

To Reproduce Steps to reproduce the behavior:

  1. Open setting & go to album art pattern
  2. Enter front.* as pattern
  3. Convert a file to m4a (should also be triggered for other formats but not tested)
  4. Converted file does not have the front cover, even if front.jpg or front.png exist

Expected behavior The matched album art should be embedded in the converted file.

System

  • OS: Linux
  • fre:ac v1.1.7 (20251001) (x86-64)

Additional context On some albums I have several front covers named front.png to front (x).png and using the patterns *front* or front*, fre:ac includes several arts in the converted files.

I am looking for a way to have a more restrictive pattern but I haven't found any way to do it.

It would be great to have few hints on how works the album art pattern.

damajor avatar Oct 19 '25 02:10 damajor

After some code reading I found the solution, the pattern should include only the filename without the extension name. https://github.com/enzo1982/BoCA/blob/1f120b8748de136e8236233fe7ae40e69e32dbaa/runtime/common/metadata/track.cpp#L193

But I still think the documentation should be updated 😃

damajor avatar Oct 19 '25 02:10 damajor