From 856bb8f99d1a8e960b1b4024f847359f8a8054b3 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Wed, 19 May 2021 17:34:17 +0530 Subject: [PATCH] [downloader] Fix `write_debug` --- yt_dlp/downloader/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py index b8c81eaf6..66e9677ed 100644 --- a/yt_dlp/downloader/common.py +++ b/yt_dlp/downloader/common.py @@ -164,6 +164,9 @@ class FileDownloader(object): 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')