1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-08 02:05:02 +08:00

Pretty print JSON information

This commit is contained in:
Mats
2014-10-22 15:44:04 +02:00
Unverified
parent 6bf6962062
commit 3e9f3e71da
+1 -1
View File
@@ -896,7 +896,7 @@ class YoutubeDL(object):
self.to_stdout(info_dict['format'])
if self.params.get('forcejson', False):
info_dict['_filename'] = filename
self.to_stdout(json.dumps(info_dict))
self.to_stdout(json.dumps(info_dict, indent=2))
# Do nothing else if in simulate mode
if self.params.get('simulate', False):