Fix playlist name encode

This commit is contained in:
Andras Elso
2017-06-09 19:49:00 +02:00
parent 2a8362a8b0
commit ceb196a4cb

View File

@@ -130,7 +130,7 @@ def feedPlaylist(username):
links = []
check = 1
for playlist in playlists['items']:
print(str(check) + '. ' + playlist['name'] + ' (' + str(playlist['tracks']['total']) + ' tracks)')
print(str(check) + '. ' + playlist['name'].encode('utf-8') + ' (' + str(playlist['tracks']['total']) + ' tracks)')
links.append(playlist)
check += 1
print('')