- Integrated `plexapi` and `python-dotenv` as dependencies in `flake.nix` and `pyproject.toml` for enhanced functionality. - Implemented new modules for audio verification and duplicate tracking, including `audio_verification.py`, `duplicate_finder.py`, and `track_verification.py`. - Updated `main.py` to utilize the new modules for identifying and managing duplicate single tracks in Lidarr, with detailed logging and confidence scoring. - Enhanced the `find_duplicate_singles` function to support audio verification results and metadata migration to Plex. - Refactored existing code for improved structure and maintainability, ensuring better integration of new features.
33 lines
682 B
Nix
33 lines
682 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
|
|
plexapi
|
|
];
|
|
|
|
# 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";
|
|
};
|
|
}
|
|
|