Skip to content

Commit

Permalink
Merge pull request #142 from rimma-kubanova/appledesc
Browse files Browse the repository at this point in the history
Fixed bug with description
  • Loading branch information
mayhem authored Jul 17, 2024
2 parents e5503c2 + aec09a8 commit eb2182e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion troi/tools/apple_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_tracks_from_apple_playlist(developer_token, user_token, playlist_id):
response = response.json()
tracks = response["data"][0]["relationships"]["tracks"]["data"]
name = response["data"][0]["attributes"]["name"]
description = response["data"][0]["attributes"]["description"]["standard"]
description = response["data"][0]["attributes"].get("description", {}).get("standard", "")
else:
response.raise_for_status()
return tracks, name, description

0 comments on commit eb2182e

Please sign in to comment.