From b5ac4f7dc2856a87b3b3fa60a35e9fe273fcdf67 Mon Sep 17 00:00:00 2001 From: anshg1214 Date: Wed, 25 Dec 2024 17:39:41 +0000 Subject: [PATCH] fix: Return response from apple music api --- troi/tools/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/troi/tools/utils.py b/troi/tools/utils.py index 48a17a8e..327c802f 100644 --- a/troi/tools/utils.py +++ b/troi/tools/utils.py @@ -46,7 +46,8 @@ def create_playlist(self, name, is_public=True,description=None): } if description: data["attributes"]["description"] = description - self.session.post(url, headers=self.headers, data=json.dumps(data)) + response = self.session.post(url, headers=self.headers, data=json.dumps(data)) + return response.json() def playlist_add_tracks(self, playlist_id, track_ids): """ Adds tracks to a playlist in Apple Music, does not return response