mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	Add option --sleep-requests to sleep b/w requests (Closes #106)
				
					
				
			* Also fix documentation of `sleep_interval_subtitles` Related issues: https://github.com/blackjack4494/yt-dlc/issues/158 https://github.com/blackjack4494/youtube-dlc/issues/195 https://github.com/ytdl-org/youtube-dl/pull/28270 https://github.com/ytdl-org/youtube-dl/pull/28144 https://github.com/ytdl-org/youtube-dl/issues/27767 https://github.com/ytdl-org/youtube-dl/issues/23638 https://github.com/ytdl-org/youtube-dl/issues/26287 https://github.com/ytdl-org/youtube-dl/issues/26319
This commit is contained in:
		| @@ -696,6 +696,10 @@ def parseOpts(overrideArguments=None): | ||||
|         '--bidi-workaround', | ||||
|         dest='bidi_workaround', action='store_true', | ||||
|         help='Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH') | ||||
|     workarounds.add_option( | ||||
|         '--sleep-requests', metavar='SECONDS', | ||||
|         dest='sleep_interval_requests', type=float, | ||||
|         help='Number of seconds to sleep between requests during data extraction') | ||||
|     workarounds.add_option( | ||||
|         '--sleep-interval', '--min-sleep-interval', metavar='SECONDS', | ||||
|         dest='sleep_interval', type=float, | ||||
| @@ -714,7 +718,7 @@ def parseOpts(overrideArguments=None): | ||||
|     workarounds.add_option( | ||||
|         '--sleep-subtitles', metavar='SECONDS', | ||||
|         dest='sleep_interval_subtitles', default=0, type=int, | ||||
|         help='Enforce sleep interval on subtitles as well') | ||||
|         help='Number of seconds to sleep before each subtitle download') | ||||
|  | ||||
|     verbosity = optparse.OptionGroup(parser, 'Verbosity and Simulation Options') | ||||
|     verbosity.add_option( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan