From bbc2c1a263b375754d82520664bb8be0fad69d5d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 11 Aug 2024 02:44:23 +0200 Subject: feat(home/beets): Init `badfiles` plugin --- modules/home/conf/beets/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/home/conf/beets/default.nix') diff --git a/modules/home/conf/beets/default.nix b/modules/home/conf/beets/default.nix index 145ae337..2a64a71f 100644 --- a/modules/home/conf/beets/default.nix +++ b/modules/home/conf/beets/default.nix @@ -168,6 +168,14 @@ # auto = true; # }; + badfiles = { + check_on_import = true; + commands = { + flac = "${lib.getExe pkgs.flac} --test --warnings-as-errors --silent"; + mp3 = "${lib.getExe pkgs.mp3val}"; + }; + }; + 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) @@ -178,6 +186,9 @@ # Calculate replay gain "replaygain" + # Check for bad files + "badfiles" + # Alows to use inline python for parsing tags "inline" -- cgit 1.4.1