Skip to content

Instantly share code, notes, and snippets.

@robpataki
Last active June 2, 2025 00:05
Show Gist options
  • Save robpataki/511ddb6df55ebe089ba2 to your computer and use it in GitHub Desktop.
Save robpataki/511ddb6df55ebe089ba2 to your computer and use it in GitHub Desktop.
File naming convention for XLD encoding

Compilations:

%A - %T  -  %n - %a - %t

Albums by 1 artist

%A - %T  -  %n - %t
%n: Track number
%N: Total tracks
%d: Disc number (Does not seem to work)
%D: Total discs
%t: Title
%T: Album title
%a: Artist
%A: Album artist
%g: Genre
%G: Grouping
%c: Composer
%C: Comment
%I: DiscID
%y: Year
%f: Format
%i: ISRC
%m: MSCN
%o: Original file name
@elmimmo
Copy link

elmimmo commented May 30, 2025

Metadata identifier surrounded by %[ and %] is ignored when it is empty. One can for instance use %[%D-%]%n to prefix track number with disk number only when the latter exists.

@benthomas-carsales
Copy link

@elmimmo That's cool! Thanks for sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment