diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-11 00:18:36 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-11 00:50:43 +0200 |
commit | f05f1b44a7fbae4a2b47123ec58484a7815a2dfa (patch) | |
tree | 90fb3b41e2a52b6af76cecf1613ffbdc393add7e /modules/home | |
parent | fix(home/beets): Generate the config file in JSON syntax (diff) | |
download | nixos-config-f05f1b44a7fbae4a2b47123ec58484a7815a2dfa.tar.gz nixos-config-f05f1b44a7fbae4a2b47123ec58484a7815a2dfa.zip |
feat(home/beets): Normalize artist when importing
Diffstat (limited to '')
-rw-r--r-- | modules/home/conf/beets/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
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 |