From 37ddf34a5ae2e001af362f213dcfff8217071479 Mon Sep 17 00:00:00 2001 From: "Arend v. Reinersdorff" Date: Sun, 25 Mar 2018 18:00:54 +0200 Subject: [PATCH 1/2] Document comments in --batch-file --- youtube_dl/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 7d1bbc021..529a989dc 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -676,7 +676,7 @@ def parseOpts(overrideArguments=None): filesystem.add_option( '-a', '--batch-file', dest='batchfile', metavar='FILE', - help='File containing URLs to download (\'-\' for stdin)') + help='File containing URLs to download (\'-\' for stdin). Lines starting with \'#\' are comments.') filesystem.add_option( '--id', default=False, action='store_true', dest='useid', help='Use only video ID in file name') From 36de0ee69b45fac2311fc765980fe3ac2cd080d7 Mon Sep 17 00:00:00 2001 From: Sergey M Date: Tue, 27 Mar 2018 22:24:47 +0700 Subject: [PATCH 2/2] Update options.py --- youtube_dl/options.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 529a989dc..3e4ac03a2 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -676,7 +676,8 @@ def parseOpts(overrideArguments=None): filesystem.add_option( '-a', '--batch-file', dest='batchfile', metavar='FILE', - help='File containing URLs to download (\'-\' for stdin). Lines starting with \'#\' are comments.') + help="File containing URLs to download ('-' for stdin), one URL per line. " + "Lines starting with '#', ';' or ']' are considered as comments and ignored.") filesystem.add_option( '--id', default=False, action='store_true', dest='useid', help='Use only video ID in file name')