Show progress fix

Oh and it shows retreival progression.
pull/7/head
Alexandre L 2015-11-29 17:28:25 +01:00
parent dafc8b08c7
commit e950b8bb89
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ def main():
# List all playlists and all track in each playlist - scope playlist-read-private, playlist-read-collaborative # List all playlists and all track in each playlist - scope playlist-read-private, playlist-read-collaborative
data['playlists'] = spotify.list('users/{user_id}/playlists'.format(user_id=data['me']['id']), {'limit': 50}) data['playlists'] = spotify.list('users/{user_id}/playlists'.format(user_id=data['me']['id']), {'limit': 50})
for playlist in data['playlists']: for playlist in data['playlists']:
log('Loading playlist: {name} ({tracks[total]} songs)'.format(**playlist)) log('Loading playlist: {name} ({tracks[total]} songs)'.format(**playlist), end='')
playlist['tracks'] = spotify.list(playlist['tracks']['href'], {'limit': 100}) playlist['tracks'] = spotify.list(playlist['tracks']['href'], {'limit': 100})
# Write the file. # Write the file.