aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-03-18 20:57:20 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-03-18 21:00:45 +0530
commit75d43ca08004e711fb37694f7208af35615118d5 (patch)
tree353a59d825abf01d9a029f965b8c7d2522a3f8c7 /yt_dlp/options.py
parent5226731e2d093d28ef02e6c01eb1bd86aed0c4a3 (diff)
downloadhypervideo-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/options.py')
-rw-r--r--yt_dlp/options.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index e7bf9d564..5c1908bfe 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -986,6 +986,16 @@ def parseOpts(overrideArguments=None):
'Do not write playlist metadata when using '
'--write-info-json, --write-description etc.'))
filesystem.add_option(
+ '--clean-infojson',
+ action='store_true', dest='clean_infojson', default=True,
+ help=(
+ 'Remove some private fields such as filenames from the infojson. '
+ 'Note that it could still contain some personal information (default)'))
+ filesystem.add_option(
+ '--no-clean-infojson',
+ action='store_false', dest='clean_infojson',
+ help='Write all fields to the infojson')
+ filesystem.add_option(
'--get-comments',
action='store_true', dest='getcomments', default=False,
help=(