0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-25 02:45:12 +00:00

[downloader] Fix write_debug

This commit is contained in:
pukkandan 2021-05-19 17:34:17 +05:30
parent af32f40bf5
commit 856bb8f99d
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -164,6 +164,9 @@ def report_warning(self, *args, **kargs):
def report_error(self, *args, **kargs):
self.ydl.report_error(*args, **kargs)
def write_debug(self, *args, **kargs):
self.ydl.write_debug(*args, **kargs)
def slow_down(self, start_time, now, byte_counter):
"""Sleep if the download speed is over the rate limit."""
rate_limit = self.params.get('ratelimit')