This commit is contained in:
2023-02-24 11:05:25 -05:00
parent 7ad0fd9c7d
commit 14c99f9845

View File

@@ -1,10 +1,9 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
options.mymods.beets.enable = lib.mkEnableOption "Beets music manager"; options.mymods.beets.enable = lib.mkEnableOption "Beets music manager";
config = lib.mkIf config.mymods.beets.enable { config = lib.mkIf config.mymods.beets.enable {
programs.beets = { home-manager.users."sstent".programs.beets = {
enable = true; enable = true;
settings = { settings = {
album_fields = { album_fields = {
@@ -105,7 +104,8 @@ config = lib.mkIf config.mymods.beets.enable {
}; };
missing = { missing = {
format_album = "$albumartist: ($year) $album $albumtype $atype"; format_album = "$albumartist: ($year) $album $albumtype $atype";
format_item = "$albumartist - $album [$albumtype]$atype: $track/$tracktotal $title"; format_item =
"$albumartist - $album [$albumtype]$atype: $track/$tracktotal $title";
}; };
musicbrainz = { musicbrainz = {
pass = "7ANCLPczDNFn6Sf65vdZ"; pass = "7ANCLPczDNFn6Sf65vdZ";
@@ -113,9 +113,12 @@ config = lib.mkIf config.mymods.beets.enable {
}; };
original_date = true; original_date = true;
paths = { paths = {
"albumtype:soundtrack" = "Soundtracks/$albumartist - $album%aunique{} ($year)/$myDisc$track - $artist - $title"; "albumtype:soundtrack" =
comp = "Compilations/$albumartist/($year) $album%aunique{}/$myDisc$track - $artist - $title"; "Soundtracks/$albumartist - $album%aunique{} ($year)/$myDisc$track - $artist - $title";
default = "%if{$artist_grouping,$artist_grouping/}$first_artist/$year - $album $atype%aunique{media}[%upper{$format}$bitdepth]%if{$media,[$media]}/%if{$isMultidisc,$disc - }$track - $mySongartist$title"; comp =
"Compilations/$albumartist/($year) $album%aunique{}/$myDisc$track - $artist - $title";
default =
"%if{$artist_grouping,$artist_grouping/}$first_artist/$year - $album $atype%aunique{media}[%upper{$format}$bitdepth]%if{$media,[$media]}/%if{$isMultidisc,$disc - }$track - $mySongartist$title";
}; };
per_disc_numbering = true; per_disc_numbering = true;
plugins = [ plugins = [
@@ -133,22 +136,19 @@ config = lib.mkIf config.mymods.beets.enable {
rewrite = { rewrite = {
"artist Björk & Tríó Guðmundar Ingólfssonar" = "Björk"; "artist Björk & Tríó Guðmundar Ingólfssonar" = "Björk";
"artist Brant Bjork and The Low Desert Punk Band" = "Brant Bjork"; "artist Brant Bjork and The Low Desert Punk Band" = "Brant Bjork";
"artist King Gizzard & The Lizard Wizard with Mild High Club" = "King Gizzard & The Lizard Wizard"; "artist King Gizzard & The Lizard Wizard with Mild High Club" =
"King Gizzard & The Lizard Wizard";
"artist Kyuss _ Queens of the Stone Age" = "Kyuss"; "artist Kyuss _ Queens of the Stone Age" = "Kyuss";
"artist Professor Elemental & Tom Caruana" = "Professor Elemental"; "artist Professor Elemental & Tom Caruana" = "Professor Elemental";
"artist Resin Dogs Feat Spikey Tee" = "Resin Dogs"; "artist Resin Dogs Feat Spikey Tee" = "Resin Dogs";
"artist Sepultura _ Exodus" = "Sepultura"; "artist Sepultura _ Exodus" = "Sepultura";
"artist The Knife in collaboration with Mount Sims and Planningtorock" = "The Knife"; "artist The Knife in collaboration with Mount Sims and Planningtorock" =
"The Knife";
"artist Unida _ Dozer" = "Unida"; "artist Unida _ Dozer" = "Unida";
}; };
}; };
}; };
}; };
} }