From bae19e1f462f221b2b2968d85ef9bd4dee31b74a Mon Sep 17 00:00:00 2001 From: Sogolumbo <33571916+Sogolumbo@users.noreply.github.com> Date: Mon, 5 Oct 2020 05:13:16 +0200 Subject: [PATCH] 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. --- spotify-backup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spotify-backup.py b/spotify-backup.py index 1a1fc70..d4e6f87 100755 --- a/spotify-backup.py +++ b/spotify-backup.py @@ -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':