Show progress fix

Oh and it shows retreival progression.
This commit is contained in:
Alexandre L
2015-11-29 17:28:25 +01:00
parent dafc8b08c7
commit e950b8bb89

View File

@@ -179,7 +179,7 @@ def main():
# 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})
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})
# Write the file.