Skip to content

Instantly share code, notes, and snippets.

@robpataki
Last active November 5, 2025 22:42
Show Gist options
  • Select an option

  • Save robpataki/511ddb6df55ebe089ba2 to your computer and use it in GitHub Desktop.

Select an option

Save robpataki/511ddb6df55ebe089ba2 to your computer and use it in GitHub Desktop.
File naming convention for XLD encoding

Compilation

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

Example: Various Artists - Tony Hawk's Pro Skater 2 (The Album) - 13 - Fu Manchu - Evil Eye.m4a

Album

%A - %T  -  %n - %t

Example: Nine Inch Nails - Purest Feeling - 04 - The Only Time.m4a

Multi-disc compilation

%A - %T  -  %[%D%]%n - %a - %t

Multi-disc album

%A - %T  -  %[%D%]%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
@benthomas-carsales
Copy link

👍

@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