Fix: resolve real provider account from provider_mappings, not the top-level field #43
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 assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
WulfScience-FOSS/ha-music-own!43
Loading…
Reference in a new issue
No description provided.
Delete branch "macsome_2"
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?
Live testing showed every MA playlist reports provider="library" at the
top level regardless of its actual source (MA's own internal library entry,
not the streaming account) - the real backing provider only appears in
provider_mappings. This silently broke three things:
against "library" instead of the actual provider domain.
Music-backed playlists) was comparing against "library" too, so it wasn't
actually protecting anything.
MA->Plex mirror, so once it gained tracks it would start getting mirrored
into a real Plex playlist.
Now resolves the true account from provider_mappings (first non-library
mapping) for is_native, the protected-provider check, and wishlist
detection, while still using the raw top-level provider for the MA API
calls that actually require it (get_playlist_tracks).
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com