validate confidence threshold values are in range 0.0-1.0 #18

Open
opened 2026-03-16 06:36:35 -04:00 by david · 0 comments
Owner

AUTO_ACCEPT_CONFIDENCE and MIN_CONFIDENCE accept any float with no bounds checking. Values like 1.5 or -0.1 cause silent misbehaviour (always/never matching).

Fix: at config load time, clamp or error when values fall outside 0.0-1.0 and log a clear warning.

AUTO_ACCEPT_CONFIDENCE and MIN_CONFIDENCE accept any float with no bounds checking. Values like 1.5 or -0.1 cause silent misbehaviour (always/never matching). **Fix:** at config load time, clamp or error when values fall outside 0.0-1.0 and log a clear warning.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
highseas/yt-sonarr-downloader#18
No description provided.