Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions custom_components/mass_queue/actions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ty:ignore[unresolved-import]
"""Actions for integration."""

from __future__ import annotations
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading