macsome_11 #52

Merged
neerdoc merged 2 commits from macsome_11 into main 2026-08-01 21:22:11 +00:00
Owner
No description provided.
_plex_find() only compared artist against grandparentTitle with a single
fuzzy score. Two real cases caused already-owned tracks to be reported as
unowned and re-added to the Plex Wish List:

- Multi-artist tracks: t.artist is a comma-joined credit list
  ("Drake, Rihanna"), which dilutes token_sort_ratio against Plex's single
  grandparentTitle ("Drake") enough to swing below the 85 threshold.
  Verified directly: "Drake, Rihanna" vs "Drake" scores 76.9 for an
  otherwise exact title match. Now also scores each individual credited
  artist name.
- Compilations/Various Artists albums: grandparentTitle is the album
  artist, not the track artist, so these scored near zero regardless of
  threshold. Now also checks Plex's originalTitle (its dedicated per-track
  artist field).

Also retries a transient Plex search error (1s/3s/5s backoff) instead of
silently treating the first failure as "not owned", and logs the best
near-miss score on a no-match so future discrepancies are diagnosable from
logs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
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
WulfScience-FOSS/ha-music-own!52
No description provided.