mirror of
https://github.com/caseychu/spotify-backup.git
synced 2024-05-11 10:51:31 +00:00
json: Pretty-print dump
This commit is contained in:
@@ -181,7 +181,7 @@ def main():
|
|||||||
with open(args.file, 'w', encoding='utf-8') as f:
|
with open(args.file, 'w', encoding='utf-8') as f:
|
||||||
# JSON file.
|
# JSON file.
|
||||||
if args.format == 'json':
|
if args.format == 'json':
|
||||||
json.dump(playlists, f)
|
json.dump(playlists, f, indent=2)
|
||||||
|
|
||||||
# Tab-separated file.
|
# Tab-separated file.
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user