From 60daf7f0bb527e3d23b646298bf5876de490f5d4 Mon Sep 17 00:00:00 2001 From: rzhxeo Date: Wed, 26 Feb 2014 02:47:27 +0100 Subject: Set resume_len to 0 if download is restarted --- youtube_dl/downloader/http.py | 1 + 1 file changed, 1 insertion(+) (limited to 'youtube_dl/downloader') diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py index 748f9f3ad..240ecb606 100644 --- a/youtube_dl/downloader/http.py +++ b/youtube_dl/downloader/http.py @@ -85,6 +85,7 @@ class HttpFD(FileDownloader): else: # The length does not match, we start the download over self.report_unable_to_resume() + resume_len = 0 open_mode = 'wb' break # Retry -- cgit v1.2.3