From: Sergey M․ Date: Wed, 13 Dec 2017 16:49:05 +0000 (+0700) Subject: [downloader/http] Return actual download result (closes #14971) X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=youtube-dl;a=commitdiff_plain;h=bec49996c68fe73b4e17e7418290072a4c4b7cdb [downloader/http] Return actual download result (closes #14971) --- diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py index 8a6638cc2..3ff26ff70 100644 --- a/youtube_dl/downloader/http.py +++ b/youtube_dl/downloader/http.py @@ -284,8 +284,7 @@ class HttpFD(FileDownloader): while count <= retries: try: establish_connection() - download() - return True + return download() except RetryDownload as e: count += 1 if count <= retries: