mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-20 15:08:55 +00:00
Accept float values for --sleep-subtitles (#15282)
Closes #15269 Authored by: 0xvd
This commit is contained in:
@@ -1212,7 +1212,7 @@ def create_parser():
|
|||||||
help='Maximum number of seconds to sleep. Can only be used along with --min-sleep-interval')
|
help='Maximum number of seconds to sleep. Can only be used along with --min-sleep-interval')
|
||||||
workarounds.add_option(
|
workarounds.add_option(
|
||||||
'--sleep-subtitles', metavar='SECONDS',
|
'--sleep-subtitles', metavar='SECONDS',
|
||||||
dest='sleep_interval_subtitles', default=0, type=int,
|
dest='sleep_interval_subtitles', default=0, type=float,
|
||||||
help='Number of seconds to sleep before each subtitle download')
|
help='Number of seconds to sleep before each subtitle download')
|
||||||
|
|
||||||
verbosity = optparse.OptionGroup(parser, 'Verbosity and Simulation Options')
|
verbosity = optparse.OptionGroup(parser, 'Verbosity and Simulation Options')
|
||||||
|
|||||||
Reference in New Issue
Block a user