From f05f1b44a7fbae4a2b47123ec58484a7815a2dfa Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 11 Aug 2024 00:18:36 +0200 Subject: feat(home/beets): Normalize artist when importing --- modules/home/conf/beets/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules') diff --git a/modules/home/conf/beets/default.nix b/modules/home/conf/beets/default.nix index ac42d5b9..03f58c45 100644 --- a/modules/home/conf/beets/default.nix +++ b/modules/home/conf/beets/default.nix @@ -27,6 +27,16 @@ # Show more detail, when beet needs to ask for something detail = true; + set_fields = { + # Normalize the author field to be Title Cased. + artist = "%title{$artist}"; + artist_sort = "%title{artist_sort}"; + artist_credit = "%title{artist_credit}"; + albumartist = "%title{albumartist}"; + albumartist_sort = "%title{albumartist_sort}"; + albumartist_credit = "%title{albumartist_credit}"; + }; + incremental = false; # Write the metadata to the files -- cgit 1.4.1