Option to keep private keys in the infojson
Options: --clean-infojson, --no-clean-infojson Related: https://github.com/yt-dlp/yt-dlp/issues/42#issuecomment-800778391
This commit is contained in:
parent
5226731e2d
commit
75d43ca080
5 changed files with 25 additions and 6 deletions
|
|
@ -1836,7 +1836,7 @@ def write_json_file(obj, fn):
|
|||
|
||||
try:
|
||||
with tf:
|
||||
json.dump(obj, tf)
|
||||
json.dump(obj, tf, default=repr)
|
||||
if sys.platform == 'win32':
|
||||
# Need to remove existing file on Windows, else os.rename raises
|
||||
# WindowsError or FileExistsError.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue