From 46460a7989a703816738d42cb0633a5b5807dd0f Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 11 Aug 2024 03:30:34 +0200 Subject: fix(home/beets): Improve path sorting and awareness of Live recordings --- modules/home/conf/beets/default.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'modules/home/conf/beets/default.nix') diff --git a/modules/home/conf/beets/default.nix b/modules/home/conf/beets/default.nix index cacd2a90..aa5cc671 100644 --- a/modules/home/conf/beets/default.nix +++ b/modules/home/conf/beets/default.nix @@ -40,11 +40,16 @@ log = "${config.xdg.dataHome}/beets/beetslog.txt"; }; - paths = { - default = "$genre/$first_artist/$album/$track $title"; - singleton = "$genre/$first_artist_singleton/$title"; - comp = "$genre/$album/$track $title"; - "albumtype:soundtrack" = "Soundtracks/$genre/$album/$track $title"; + paths = let + j = lib.strings.concatStringsSep "/"; + in { + default = j ["[Default]" "$genre" "$first_artist" "$album ($albumtype)" "$track $title"]; + "albumtype:live" = j ["[Live]" "$genre" "$first_artist" "$album ($albumtype)" "$track $title"]; + + "albumtype:album" = j ["Music" "$genre" "$first_artist" "$album ($albumtype)" "$track $title"]; + "albumtype::(Single|EP)" = j ["Music" "$genre" "$first_artist_singleton" "$album ($albumtype)" "$track $title"]; + "albumtype:compilation" = j ["Complilations" "$genre" "Various Artists" "$album ($albumtype)" "$track $title"]; + "albumtype:soundtrack" = j ["Soundtracks" "$genre" "$first_artist" "$album" "$track $title"]; }; # Plugin config @@ -87,6 +92,7 @@ ihate = { warn = [ "title:commentary" + "albumtype:live" ]; }; play = { -- cgit 1.4.1