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.pull/27/head
parent
2c23bc0604
commit
bae19e1f46
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue