From 3495af44dfdc9ab5ab8d38fc2d593428d05cca4e Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Sat, 10 Jun 2017 11:10:10 +0530 Subject: [PATCH] Use fixEncoding() instead of encode() --- spotdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotdl.py b/spotdl.py index a7cb126..5ac585b 100644 --- a/spotdl.py +++ b/spotdl.py @@ -130,7 +130,7 @@ def feedPlaylist(username): links = [] check = 1 for playlist in playlists['items']: - print(str(check) + '. ' + playlist['name'].encode('utf-8') + ' (' + str(playlist['tracks']['total']) + ' tracks)') + print(str(check) + '. ' + fixEncoding(playlist['name']) + ' (' + str(playlist['tracks']['total']) + ' tracks)') links.append(playlist) check += 1 print('')