From da99ec6b92c0d3def5786d3c9f4af77f329720b0 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Sun, 11 Apr 2021 03:58:03 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=20Pretty=20json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 05e214d..8f3a369 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,5 @@ venv/ client_secret*.json *-oauth2.json -output.json +download_list.json output/ diff --git a/main.py b/main.py index 3a241ea..4e07bf2 100644 --- a/main.py +++ b/main.py @@ -83,7 +83,7 @@ else: c.print('All done! 🎉') c.print('Saving to download_list.json...', style='italic') f = open("download_list.json", "w", encoding='utf-8') - f.write(json.dumps(all_channels)) + f.write(json.dumps(all_channels, indent=4)) f.close() for ch in all_channels: