Write per-track match diagnostics to a file instead of relying on HA's log #55
No reviewers
Labels
No labels
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
WulfScience-FOSS/ha-music-own!55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "macsome_14"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Despite the last two rounds of fixes, manual verification is still
finding the large majority of "wanted" tracks already own in Plex (e.g.
82+/90 in the last audit). HA's own log rotates/truncates too fast to
reliably capture and grep a full sync's worth of matching decisions,
which has made root-causing this by log excerpt alone unreliable.
_plex_find() now writes a full diagnostic line per track to
match_debug.log, created next to engine.py in the installed integration
folder (not subject to HA's log rotation or level config), truncated at
the start of every match_and_build() run so it always holds exactly the
latest sync's decisions:
candidate field/artist variant won.
title/album/grandparentTitle/originalTitle and computed score per
candidate — so a false negative can be diagnosed directly instead of
guessed at.
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com