Log the end of getting data and the beginning of writing files

This helps when debugging and let's the user know what's going on while they're waiting.
This commit is contained in:
Sogolumbo
2020-10-05 05:13:16 +02:00
parent 2c23bc0604
commit bae19e1f46

View File

@@ -148,6 +148,7 @@ def main():
playlist['tracks'] = spotify.list(playlist['tracks']['href'], {'limit': 100})
# Write the file.
log('Writing files...')
with open(args.file, 'w', encoding='utf-8') as f:
# JSON file.
if args.format == 'json':