From e7c375e322ddb9bae7997236b54f3b3036be5d6c Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Tue, 8 Sep 2026 11:48:45 -0400 Subject: [PATCH] Fix: Getting tracks for artists, albums failing if first found provider is library --- custom_components/mass_queue/actions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/custom_components/mass_queue/actions.py b/custom_components/mass_queue/actions.py index cae811d..97bf3de 100644 --- a/custom_components/mass_queue/actions.py +++ b/custom_components/mass_queue/actions.py @@ -1,3 +1,4 @@ +# ty:ignore[unresolved-import] """Actions for integration.""" from __future__ import annotations @@ -382,6 +383,8 @@ async def get_artist_tracks(self, artist_uri: str, page: int | None = None): mapping = mappings[0] item_id = mapping.item_id provider = mapping.provider_domain + if provider.lower() == "none": + provider = "library" resp = ( await self._client.music.get_artist_tracks(item_id, provider) if not page @@ -399,6 +402,8 @@ async def get_album_tracks(self, album_uri: str, page: int | None = None): mapping = mappings[0] item_id = mapping.item_id provider = mapping.provider_domain + if provider.lower() == "none": + provider = "library" resp = ( await self._client.music.get_album_tracks(item_id, provider) if not page