Menu

#617 Command line tool should parse conditional file naming pattern like the GUI app can

New
nobody
None
Medium
Defect
2025-06-06
2025-06-06
elmimmo
No

The command line tool should be able to parse %[ and %] in the file naming pattern just as the GUI app does. Instead, it treats them as literal strings.

Description:

While with the GUI app one can surround metadata identifiers by %[ and %] to have the app ignore those identifiers (and any space also contained within?) when those identifiers are empty (in order for, for instance, prefix track number with disk number only when the latter exists, with %[%D-%]%n), the command line tool interprets those brackets as literal and adds their contents to the filenames regardless.

Steps to reproduce:

  1. Run the following command in Terminal:
    xld --filename-format "%A/%T%[ (%y)%]/%[%D-%]%n %t" -c <cue-sheet> -o <output dir> <single-flac>
    

Expected results:

With the example pattern above, I would expect the creation of this hierarchy in the output folder:

  • Album_Artist
    • Album (year) -> or just "Album", if year does not exist.
      • Disc_no-01 Title.mp3 -> or just "01 Title.mp3" if Disc_no does not exist.
      • Disc_no-02 Title.mp3 -> same

Actual results:

Literal %[ and %] as well as contained spaces are added to all track file names irrespective of whether year and Disc_no metadata exist.

Versions:

  • XLD 20250302
  • macOS 15.4.1 (24E263)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB