Clear stale wanted rows for a song across all playlists on match, not just the current one #53
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!53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "macsome_12"
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?
_buylist() aggregates the wanted table across ALL playlists, grouped by
(artist, title, album). But the previous cleanup on a Plex match only
deleted the wanted row keyed to the playlist currently being processed
(_key(t, pl.name)). A stale row left behind under a different playlist
(no longer synced, or matched independently in an earlier run) survived
and kept feeding the buylist / Plex Wish List even after the same song
was confirmed owned via another playlist occurrence.
Observed live: "Kings of Leon - Fans" matched at score 100 in two
different playlists in the same run, yet still went out to the Wish
List - a third, orphaned wanted row from another playlist context was
never cleared.
Now deletes every wanted row sharing the same normalized artist/title/
album, matching the exact grain _buylist() groups on.
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com