Merge pull request #66 from Elbandi/remake

Fix playlist name encode
This commit is contained in:
Ritiek Malhotra
2017-06-09 23:23:32 +05:30
committed by GitHub

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('')