diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-29 00:27:44 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-29 22:52:01 +0530 |
commit | f2ebc5c7be57ef41d3fd5508e75c5ca26d36a0d1 (patch) | |
tree | 812ad33dc62a01467affba1ed45bdee195d426a9 /yt_dlp/options.py | |
parent | b222c27145a456eef4ed82a8dbbf92cb96fa8041 (diff) | |
download | hypervideo-pre-f2ebc5c7be57ef41d3fd5508e75c5ca26d36a0d1.tar.lz hypervideo-pre-f2ebc5c7be57ef41d3fd5508e75c5ca26d36a0d1.tar.xz hypervideo-pre-f2ebc5c7be57ef41d3fd5508e75c5ca26d36a0d1.zip |
Option `--wait-for-video` to wait for scheduled streams
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 4c1920404..b3cb7746f 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -259,6 +259,16 @@ def parseOpts(overrideArguments=None): action='store_false', dest='extract_flat', help='Extract the videos of a playlist') general.add_option( + '--wait-for-video', + dest='wait_for_video', metavar='MIN[-MAX]', default=None, + help=( + 'Wait for scheduled streams to become available. ' + 'Pass the minimum number of seconds (or range) to wait between retries')) + general.add_option( + '--no-wait-for-video', + dest='wait_for_video', action='store_const', const=None, + help='Do not wait for scheduled streams (default)') + general.add_option( '--mark-watched', action='store_true', dest='mark_watched', default=False, help='Mark videos watched (even with --simulate). Currently only supported for YouTube') |