aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-01-29 03:25:35 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-03-04 20:59:03 +0530
commit8b7539d27c0a47d8d08e0522bdb66c571483377b (patch)
tree93327ca0c088d9a3e97878b52a8de4a49c897ac8 /yt_dlp/options.py
parente48b3875ec4426ab9437fd06b857266d6e15bb55 (diff)
downloadhypervideo-pre-8b7539d27c0a47d8d08e0522bdb66c571483377b.tar.lz
hypervideo-pre-8b7539d27c0a47d8d08e0522bdb66c571483377b.tar.xz
hypervideo-pre-8b7539d27c0a47d8d08e0522bdb66c571483377b.zip
Implement `--add-header` without modifying `std_headers`
Closes #2526, #1614
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 9908f3975..17d8d5da6 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -860,17 +860,16 @@ def create_parser():
workarounds.add_option(
'--user-agent',
metavar='UA', dest='user_agent',
- help='Specify a custom user agent')
+ help=optparse.SUPPRESS_HELP)
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=optparse.SUPPRESS_HELP)
workarounds.add_option(
'--add-header',
metavar='FIELD:VALUE', dest='headers', default={}, type='str',
action='callback', callback=_dict_from_options_callback,
- callback_kwargs={'multiple_keys': False, 'process_key': None},
+ callback_kwargs={'multiple_keys': False},
help='Specify a custom HTTP header and its value, separated by a colon ":". You can use this option multiple times',
)
workarounds.add_option(