diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-07 16:50:46 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-07 21:17:07 +0530 |
commit | b868936cd6d619f0e3a2c303028c132b761e6313 (patch) | |
tree | d68c763f4c861bec36ce1b7e9a8136dd01368d93 /yt_dlp/downloader/common.py | |
parent | c681cb5d931b61a4370c56c8da82f01f3983f000 (diff) | |
download | hypervideo-pre-b868936cd6d619f0e3a2c303028c132b761e6313.tar.lz hypervideo-pre-b868936cd6d619f0e3a2c303028c132b761e6313.tar.xz hypervideo-pre-b868936cd6d619f0e3a2c303028c132b761e6313.zip |
[cleanup] Misc
Diffstat (limited to 'yt_dlp/downloader/common.py')
-rw-r--r-- | yt_dlp/downloader/common.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py index 500d7a49e..396521aa1 100644 --- a/yt_dlp/downloader/common.py +++ b/yt_dlp/downloader/common.py @@ -320,12 +320,9 @@ class FileDownloader(object): '[download] Got server HTTP error: %s. Retrying (attempt %d of %s) ...' % (error_to_compat_str(err), count, self.format_retries(retries))) - def report_file_already_downloaded(self, file_name): + def report_file_already_downloaded(self, *args, **kwargs): """Report file has already been fully downloaded.""" - try: - self.to_screen('[download] %s has already been downloaded' % file_name) - except UnicodeEncodeError: - self.to_screen('[download] The file has already been downloaded') + return self.ydl.report_file_already_downloaded(*args, **kwargs) def report_unable_to_resume(self): """Report it was impossible to resume download.""" |