about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf/beets/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home.legacy/conf/beets/default.nix')
-rw-r--r--modules/home.legacy/conf/beets/default.nix18
1 files changed, 14 insertions, 4 deletions
diff --git a/modules/home.legacy/conf/beets/default.nix b/modules/home.legacy/conf/beets/default.nix
index 612a5f03..2fec6881 100644
--- a/modules/home.legacy/conf/beets/default.nix
+++ b/modules/home.legacy/conf/beets/default.nix
@@ -42,7 +42,7 @@ in {
       };
 
       replace = {
-        "[/]" = "\\";
+        "[/]" = "\\\\";
         "[\\x00-\\x1f]" = "";
         "\\s+$" = "";
         "^\\s+" = "";
@@ -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;