mirror of
https://github.com/anatolykopyl/youtube-cdl.git
synced 2026-03-26 21:05:13 +00:00
🗃 Pretty json
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,5 +4,5 @@ venv/
|
|||||||
client_secret*.json
|
client_secret*.json
|
||||||
*-oauth2.json
|
*-oauth2.json
|
||||||
|
|
||||||
output.json
|
download_list.json
|
||||||
output/
|
output/
|
||||||
|
|||||||
2
main.py
2
main.py
@@ -83,7 +83,7 @@ else:
|
|||||||
c.print('All done! 🎉')
|
c.print('All done! 🎉')
|
||||||
c.print('Saving to download_list.json...', style='italic')
|
c.print('Saving to download_list.json...', style='italic')
|
||||||
f = open("download_list.json", "w", encoding='utf-8')
|
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()
|
f.close()
|
||||||
|
|
||||||
for ch in all_channels:
|
for ch in all_channels:
|
||||||
|
|||||||
Reference in New Issue
Block a user