From: sprocket-9 Date: Thu, 16 May 2024 12:02:13 +0000 (+0100) Subject: Fixes the spotify json decode mime-type errors (#1311) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=7bf3ceaa1168f8e870c308669466ee246793e0d9;p=music-assistant-server.git Fixes the spotify json decode mime-type errors (#1311) --- 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]: