Skip to content

Commit b3b31ca

Browse files
authored
Merge pull request #159 from metabrainz/ansh/fix-apple-music-playlist
Fix playlist export to Apple Music
2 parents 0b9b60c + b5ac4f7 commit b3b31ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

troi/tools/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def create_playlist(self, name, is_public=True,description=None):
4646
}
4747
if description:
4848
data["attributes"]["description"] = description
49-
self.session.post(url, headers=self.headers, data=json.dumps(data))
49+
response = self.session.post(url, headers=self.headers, data=json.dumps(data))
50+
return response.json()
5051

5152
def playlist_add_tracks(self, playlist_id, track_ids):
5253
""" Adds tracks to a playlist in Apple Music, does not return response

0 commit comments

Comments
 (0)