浏览代码

Increment number of downloads when the file has already been fully downloaded

Ricardo Garcia 15 年之前
父节点
当前提交
42e3546fb5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube-dl

+ 1 - 0
youtube-dl

@@ -536,6 +536,7 @@ class FileDownloader(object):
 			if content_length is not None and long(content_length) == resume_len:
 				# Because the file had already been fully downloaded
 				self.report_file_already_downloaded(filename)
+				self._num_downloads += 1
 				return True
 			else:
 				# Because the server didn't let us