Skip to content

Commit

Permalink
Merge pull request #159 from metabrainz/ansh/fix-apple-music-playlist
Browse files Browse the repository at this point in the history
Fix playlist export to Apple Music
  • Loading branch information
anshg1214 authored Jan 3, 2025
2 parents 0b9b60c + b5ac4f7 commit b3b31ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion troi/tools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3b31ca

Please sign in to comment.