diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-10 22:01:39 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-10 22:01:39 +0200 |
commit | abe88ff0f456d42b30b29ed9e22796a706c6335d (patch) | |
tree | 7ab3c9a98322c0ebdda15985cffe3293cb676eb9 /modules/home/conf/beets/default.nix | |
parent | feat(home/beets): Add `duplicates` plugin (diff) | |
download | nixos-config-abe88ff0f456d42b30b29ed9e22796a706c6335d.tar.gz nixos-config-abe88ff0f456d42b30b29ed9e22796a706c6335d.zip |
feat(home/{beets, mpd}): Setup further plugins
Diffstat (limited to '')
-rw-r--r-- | modules/home/conf/beets/default.nix | 50 |
1 files changed, 48 insertions, 2 deletions
diff --git a/modules/home/conf/beets/default.nix b/modules/home/conf/beets/default.nix index 08b0b34e..ef969dc0 100644 --- a/modules/home/conf/beets/default.nix +++ b/modules/home/conf/beets/default.nix @@ -58,10 +58,38 @@ auto = true; backend = "ffmpeg"; + r128_targetlevel = 89; + # Re-calculate the replay gain value even for files, that already have one set. overwrite = true; }; - duplicates = {}; + duplicates = { + keys = ["acoustid_fingerprint"]; + }; + fuzzy = { + # The prefix denoting that a search should be run in fuzzy mode + prefix = "."; + }; + ihate = { + warn = [ + "title:commentary" + ]; + }; + smartplaylist = { + relative_to = config.services.mpd.musicDirectory; + playlist_dir = config.services.mpd.playlistDirectory; + forward_slash = false; + + # Show the real m3u file paths, when running `--pretend` + pretend_paths = true; + + playlists = [ + { + name = "artists/$albumartist.m3u"; + query = ""; + } + ]; + }; # scrub = { # auto = true; # }; @@ -69,13 +97,31 @@ plugins = [ # Remove all previous tags before import (this is useful to ensure, that # the metadata in the libary.db is synced with the tags on disk) - # # FIXME: I think, that this also removes the baked-in images, which is not ideal + # # FIXME: I think, that this also removes the deezer id, which is not ideal # <2024-08-07> # "scrub" # Calculate replay gain "replaygain" + # Show tags on files/queries + "info" + + # Create playlist from `play_count`/`skip_count` (gathered by the `mpdstats` + # plugin) + # Note that this should come _before_ the `mpdupdate` plugin, to ensure that + # `mpdupgate` can propagate changed playlist to `mpd`. + "smartplaylist" + + # Warn, when importing a matching item + "ihate" + + # Allow fuzzy searching + "fuzzy" + + # Put featured artist in the title (this helps with grouping by artist) + "ftintitle" + # Filter out duplicates "duplicates" |