diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-18 20:57:20 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-18 21:00:45 +0530 |
commit | 75d43ca08004e711fb37694f7208af35615118d5 (patch) | |
tree | 353a59d825abf01d9a029f965b8c7d2522a3f8c7 /yt_dlp/utils.py | |
parent | 5226731e2d093d28ef02e6c01eb1bd86aed0c4a3 (diff) | |
download | hypervideo-pre-75d43ca08004e711fb37694f7208af35615118d5.tar.lz hypervideo-pre-75d43ca08004e711fb37694f7208af35615118d5.tar.xz hypervideo-pre-75d43ca08004e711fb37694f7208af35615118d5.zip |
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
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index a913b9814..27d649565 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -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. |