Files
lidarr-mb-gap/nix/package-cleanup.nix
Danilo Reyes 03e8eb6f4e Enhance audio verification features and improve code structure
- Added `ffmpeg` as a dependency in `flake.nix` and `package-cleanup.nix` for audio file property analysis.
- Updated `main.py` to include new functions for retrieving audio file properties using `ffprobe` and verifying audio matches with detailed confidence scoring.
- Refactored fingerprint comparison logic to improve accuracy and added logging for better traceability.
- Enhanced the `find_duplicate_singles` function to support audio verification results and confidence scores, providing clearer output for users.
2025-11-13 23:21:12 -06:00

32 lines
670 B
Nix

{ pkgs, src }:
pkgs.python3Packages.buildPythonApplication {
pname = "lidarr-cleanup-singles";
version = "1.0.0";
inherit src;
format = "pyproject";
nativeBuildInputs = with pkgs.python3Packages; [
setuptools
];
propagatedBuildInputs = with pkgs.python3Packages; [
requests
python-dotenv
];
# Runtime dependencies for audio verification
buildInputs = [
pkgs.chromaprint
pkgs.ffmpeg
];
makeWrapperArgs = [
"--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.ffmpeg pkgs.chromaprint ]}"
];
meta = {
mainProgram = "lidarr-cleanup-singles";
description = "Identify duplicate single tracks in Lidarr";
};
}