about summary refs log tree commit diff stats
path: root/modules/home/conf/beets/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-11 03:30:34 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-11 13:22:17 +0200
commit46460a7989a703816738d42cb0633a5b5807dd0f (patch)
tree1e23cbc3886e9f86e4de426acad6e491985be08d /modules/home/conf/beets/default.nix
parentfeat(home/beets): Init 'mbsubmit' (diff)
downloadnixos-config-46460a7989a703816738d42cb0633a5b5807dd0f.tar.gz
nixos-config-46460a7989a703816738d42cb0633a5b5807dd0f.zip
fix(home/beets): Improve path sorting and awareness of Live recordings
Diffstat (limited to 'modules/home/conf/beets/default.nix')
-rw-r--r--modules/home/conf/beets/default.nix16
1 files changed, 11 insertions, 5 deletions
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 = {