aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/options.py
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2023-07-11 21:51:32 +0100
committerdirkf <fieldhouse@gmx.net>2023-07-18 10:50:46 +0100
commit1634b1d61efa36c31c86b8c64c88dc297a7af28a (patch)
tree95af8f84ae38ef88e630356573171c7823ad3a20 /youtube_dl/options.py
parent21438a4194376c3a9b1e5c322c825d43a1b03d6e (diff)
downloadyoutube-dl-1634b1d61efa36c31c86b8c64c88dc297a7af28a.tar.xz
[doc] Warn against setting cookies with --add-header
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r--youtube_dl/options.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index d802b7e59..434f520d3 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -544,12 +544,14 @@ def parseOpts(overrideArguments=None):
workarounds.add_option(
'--referer',
metavar='URL', dest='referer', default=None,
- help='Specify a custom referer, use if the video access is restricted to one domain',
+ help='Specify a custom Referer: use if the video access is restricted to one domain',
)
workarounds.add_option(
'--add-header',
metavar='FIELD:VALUE', dest='headers', action='append',
- help='Specify a custom HTTP header and its value, separated by a colon \':\'. You can use this option multiple times',
+ help=('Specify a custom HTTP header and its value, separated by a colon \':\'. You can use this option multiple times. '
+ 'NB Use --cookies rather than adding a Cookie header if its contents may be sensitive; '
+ 'data from a Cookie header will be sent to all domains, not just the one intended')
)
workarounds.add_option(
'--bidi-workaround',