From 87bdd27b54fa6a4cdcd29225c252b97ed538d2bd Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 9 Aug 2024 22:22:39 +0200 Subject: fix(home/beets): Calculate `replaygain` directly when importing Although this does not leverage a parallelized implementation, the importer itself is already parallelized, thus resulting in a parallelized calculation. --- modules/home/conf/beets/default.nix | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/modules/home/conf/beets/default.nix b/modules/home/conf/beets/default.nix index 9babf9a6..db5138dd 100644 --- a/modules/home/conf/beets/default.nix +++ b/modules/home/conf/beets/default.nix @@ -52,23 +52,10 @@ force = true; }; hook = { - hooks = [ - { - # Called, when `beet import` finishes - event = "import"; - command = "echo 'Import finished. Starting to calculate replay gain..'"; - } - { - # Called, when `beet import` finishes - event = "import"; - command = "beet replaygain"; - } - ]; + hooks = []; }; replaygain = { - # Can't run in parallel in the import because of writing issues, thus we run it - # after the import finishes (see the `hooks` config) - auto = false; + auto = true; backend = "ffmpeg"; # Re-calculate the replay gain value even for files, that already have one set. -- cgit 1.4.1