aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-01-30 16:43:20 +0530
committerpukkandan <pukkandan@gmail.com>2021-01-30 16:43:20 +0530
commitcac96421d9f736e2b463c4bb170f67874fb04055 (patch)
treec4fdf1c599237e6e2a5b6a694494274d890677b4 /youtube_dlc/options.py
parent7c245ce87731a4e80f4ecaa744ffa7738e601f2d (diff)
downloadhypervideo-pre-cac96421d9f736e2b463c4bb170f67874fb04055.tar.lz
hypervideo-pre-cac96421d9f736e2b463c4bb170f67874fb04055.tar.xz
hypervideo-pre-cac96421d9f736e2b463c4bb170f67874fb04055.zip
New option --no-write-playlist-metafiles to NOT write playlist metadata files
Diffstat (limited to 'youtube_dlc/options.py')
-rw-r--r--youtube_dlc/options.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/youtube_dlc/options.py b/youtube_dlc/options.py
index af152ab27..2cef01a5a 100644
--- a/youtube_dlc/options.py
+++ b/youtube_dlc/options.py
@@ -938,6 +938,18 @@ def parseOpts(overrideArguments=None):
action='store_false', dest='writeannotations',
help='Do not write video annotations (default)')
filesystem.add_option(
+ '--write-playlist-metafiles',
+ action='store_true', dest='allow_playlist_files', default=True,
+ help=(
+ 'Write playlist metadata in addition to the video metadata '
+ 'when using --write-info-json, --write-description etc. (default)'))
+ filesystem.add_option(
+ '--no-write-playlist-metafiles',
+ action='store_false', dest='allow_playlist_files',
+ help=(
+ 'Do not write playlist metadata when using '
+ '--write-info-json, --write-description etc.'))
+ filesystem.add_option(
'--get-comments',
action='store_true', dest='getcomments', default=False,
help='Retrieve video comments to be placed in the .info.json file')