Increment number of downloads when the file has already been fully downloaded
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Mon, 19 Apr 2010 17:25:47 +0000 (19:25 +0200)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:27:01 +0000 (11:27 +0100)
youtube-dl

index 6389c656e1d2711d39ef7f00b3dd4f6edf8499f6..72b09a0c24f20bcf1b7712c6387485da3c10bebc 100755 (executable)
@@ -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