aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-04-19 19:25:47 +0200
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-10-31 11:27:01 +0100
commit42e3546fb53c016a5a10ffdd60dc50c5f4e1234e (patch)
treeb65765cfb8a2c01a7cbc98d1d1a39aac00e470b5
parent0228ee978899c9ba563b9bfd0ef52336dfe70c30 (diff)
Increment number of downloads when the file has already been fully downloaded
-rwxr-xr-xyoutube-dl1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube-dl b/youtube-dl
index 6389c656e..72b09a0c2 100755
--- a/youtube-dl
+++ b/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