Use fixEncoding() instead of encode()

This commit is contained in:
Ritiek Malhotra
2017-06-10 11:10:10 +05:30
committed by GitHub
parent 39c00108f8
commit 3495af44df

View File

@@ -130,7 +130,7 @@ def feedPlaylist(username):
links = [] links = []
check = 1 check = 1
for playlist in playlists['items']: 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) links.append(playlist)
check += 1 check += 1
print('') print('')