diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-09 22:22:39 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-09 22:22:39 +0200 |
commit | 87bdd27b54fa6a4cdcd29225c252b97ed538d2bd (patch) | |
tree | a958a3e271443d6966094f4a664c4eea987a70b7 /modules | |
parent | fix(home/beets): Also use subdirs for the Soundtrack genres (diff) | |
download | nixos-config-87bdd27b54fa6a4cdcd29225c252b97ed538d2bd.tar.gz nixos-config-87bdd27b54fa6a4cdcd29225c252b97ed538d2bd.zip |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/home/conf/beets/default.nix | 17 |
1 files 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. |