diff --git a/music_assistant/server/providers/spotify/__init__.py b/music_assistant/server/providers/spotify/__init__.py index e78ddc4a9..9bf688ae1 100644 --- a/music_assistant/server/providers/spotify/__init__.py +++ b/music_assistant/server/providers/spotify/__init__.py @@ -348,7 +348,7 @@ async def library_add(self, prov_item_id, media_type: MediaType): """Add item to library.""" result = False if media_type == MediaType.ARTIST: - result = await self._put_data("me/following", {"ids": [prov_item_id], "type": "artist"}) + result = await self._put_data("me/following", {"ids": [prov_item_id]}, type="artist") elif media_type == MediaType.ALBUM: result = await self._put_data("me/albums", {"ids": [prov_item_id]}) elif media_type == MediaType.TRACK: @@ -363,9 +363,7 @@ async def library_remove(self, prov_item_id, media_type: MediaType): """Remove item from library.""" result = False if media_type == MediaType.ARTIST: - result = await self._delete_data( - "me/following", {"ids": [prov_item_id], "type": "artist"} - ) + result = await self._delete_data("me/following", {"ids": [prov_item_id]}, type="artist") elif media_type == MediaType.ALBUM: result = await self._delete_data("me/albums", {"ids": [prov_item_id]}) elif media_type == MediaType.TRACK: