From cac96421d9f736e2b463c4bb170f67874fb04055 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 30 Jan 2021 16:43:20 +0530 Subject: New option --no-write-playlist-metafiles to NOT write playlist metadata files --- youtube_dlc/options.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'youtube_dlc/options.py') 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 @@ -937,6 +937,18 @@ def parseOpts(overrideArguments=None): '--no-write-annotations', 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, -- cgit v1.2.3