1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-20 06:58:57 +00:00

Accept float values for --sleep-subtitles (#15282)

Closes #15269
Authored by: 0xvd
This commit is contained in:
0x∅
2025-12-19 05:12:50 +05:30
committed by GitHub
parent c5e55e0479
commit f6dc7d5279

View File

@@ -1212,7 +1212,7 @@ def create_parser():
help='Maximum number of seconds to sleep. Can only be used along with --min-sleep-interval')
workarounds.add_option(
'--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')
verbosity = optparse.OptionGroup(parser, 'Verbosity and Simulation Options')