diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-07-29 18:16:46 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-07-29 18:18:23 +0200 |
commit | 6186a802f41cb01eee4e6b65ecdfc93fed9f0139 (patch) | |
tree | cc9d05f78ccfb7b742f3f71a1af34c9e60eaba03 /modules/home.legacy/conf/beets/default.nix | |
parent | modules/printing: Make printer config state-full (diff) | |
download | nixos-config-6186a802f41cb01eee4e6b65ecdfc93fed9f0139.zip |
modules/legacy/beets: Use primary artist for path names
This avoids having multiple directories for the same artist: ``` Artist1 Artist1 & SomeOtherArtist Artist1 feat. ThirdArtist (etc.) ```
Diffstat (limited to 'modules/home.legacy/conf/beets/default.nix')
-rw-r--r-- | modules/home.legacy/conf/beets/default.nix | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/modules/home.legacy/conf/beets/default.nix b/modules/home.legacy/conf/beets/default.nix index 612a5f03..3eeeee25 100644 --- a/modules/home.legacy/conf/beets/default.nix +++ b/modules/home.legacy/conf/beets/default.nix @@ -67,9 +67,19 @@ in { paths = let join = lib.strings.concatStringsSep "/"; in { - "albumtype:live" = join ["[Live, please delete]" "$genre" "$first_artist" "$album ($albumtype)" "$track $title"]; - - default = "$albumartist/$album%aunique{}/$track $title"; + "albumtype:live" = join [ + "[Live, please delete]" + "$genre" + "$primary_artist" # (= $albumartists[0]). From inline plugin + "$album ($albumtype)" + "$track $title" + ]; + + default = join [ + "$primary_artist" # (= $albumartists[0]). From inline plugin + "$album%aunique{}" + "$track $title" + ]; }; inherit plugins; |