From 7bf3ceaa1168f8e870c308669466ee246793e0d9 Mon Sep 17 00:00:00 2001 From: sprocket-9 Date: Thu, 16 May 2024 13:02:13 +0100 Subject: [PATCH] Fixes the spotify json decode mime-type errors (#1311) --- music_assistant/server/providers/spotify/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/music_assistant/server/providers/spotify/__init__.py b/music_assistant/server/providers/spotify/__init__.py index ddd203ca..6e279a7c 100644 --- a/music_assistant/server/providers/spotify/__init__.py +++ b/music_assistant/server/providers/spotify/__init__.py @@ -824,7 +824,7 @@ class SpotifyProvider(MusicProvider): response.raise_for_status() @throttle_with_retries - async def _put_data(self, endpoint, data=None, **kwargs) -> dict[str, Any]: + async def _put_data(self, endpoint, data=None, **kwargs) -> None: """Put data on api.""" url = f"https://api.spotify.com/v1/{endpoint}" token = await self.login() @@ -842,7 +842,6 @@ class SpotifyProvider(MusicProvider): if response.status in (502, 503): raise ResourceTemporarilyUnavailable(backoff_time=30) response.raise_for_status() - return await response.json(loads=json_loads) @throttle_with_retries async def _post_data(self, endpoint, data=None, **kwargs) -> dict[str, Any]: -- 2.34.1