Option --wait-for-video to wait for scheduled streams

This commit is contained in:
pukkandan
2021-11-29 00:27:44 +05:30
parent b222c27145
commit f2ebc5c7be
5 changed files with 91 additions and 9 deletions

View File

@@ -258,6 +258,16 @@ def parseOpts(overrideArguments=None):
'--no-flat-playlist',
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,