Skip to content

Commit

Permalink
correct ascii parse
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmaillo authored Apr 10, 2021
1 parent 62af80a commit 6588bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hades.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_playlist_details(self):
for item in pl_items:
track_name = item["track"]["name"].replace(" ", "+")
artist_name = item["track"]["artists"][0]["name"].replace(" ", "+")
pl_tracks.append(f"{track_name}+{artist_name}".encode("utf8"))
pl_tracks.append(urllib.parse.quote(f"{track_name}+{artist_name}"))

offset = (offset + len(pl_items))
pl_items = self.sp.playlist_items(
Expand Down

0 comments on commit 6588bf2

Please sign in to comment.