diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-22 04:34:22 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-22 04:42:24 +0530 |
commit | 19b824f6939b0c13c6de1297faee2e70206ce6c4 (patch) | |
tree | 86f8794392b385b6d0ed4ea0575be794953d5599 /yt_dlp/options.py | |
parent | f0ded3dad3d751e697d2938d60f369b4cd409170 (diff) | |
download | hypervideo-pre-19b824f6939b0c13c6de1297faee2e70206ce6c4.tar.lz hypervideo-pre-19b824f6939b0c13c6de1297faee2e70206ce6c4.tar.xz hypervideo-pre-19b824f6939b0c13c6de1297faee2e70206ce6c4.zip |
Re-implement deprecated option `--id`
Despite `--title`, `--literal` etc being deprecated,
`--id` is still documented in youtube-dl and so should be kept
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 0638e8642..719a1bce4 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -976,6 +976,9 @@ def parseOpts(overrideArguments=None): dest='batchfile', action='store_const', const=None, help='Do not read URLs from batch file (default)') filesystem.add_option( + '--id', default=False, + action='store_true', dest='useid', help=optparse.SUPPRESS_HELP) + filesystem.add_option( '-P', '--paths', metavar='[TYPES:]PATH', dest='paths', default={}, type='str', action='callback', callback=_dict_from_options_callback, |