1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-08 00:49:29 +08:00

Dirty fix for doubling rate-limit

This commit is contained in:
iggyvolz
2014-10-13 16:55:30 -04:00
Unverified
parent bd4e40df1a
commit 79d0a746c3
+1 -1
View File
@@ -146,7 +146,7 @@ class FileDownloader(object):
def slow_down(self, start_time, byte_counter):
"""Sleep if the download speed is over the rate limit."""
rate_limit = self.params.get('ratelimit', None)
rate_limit = self.params.get('ratelimit', None)/2
if rate_limit is None or byte_counter == 0:
return
now = time.time()