mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
Increment number of downloads when the file has already been fully downloaded
This commit is contained in:
parent
0228ee9788
commit
42e3546fb5
1 changed files with 1 additions and 0 deletions
|
@ -536,6 +536,7 @@ class FileDownloader(object):
|
||||||
if content_length is not None and long(content_length) == resume_len:
|
if content_length is not None and long(content_length) == resume_len:
|
||||||
# Because the file had already been fully downloaded
|
# Because the file had already been fully downloaded
|
||||||
self.report_file_already_downloaded(filename)
|
self.report_file_already_downloaded(filename)
|
||||||
|
self._num_downloads += 1
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
# Because the server didn't let us
|
# Because the server didn't let us
|
||||||
|
|
Loading…
Reference in a new issue