X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=youtube-dl;a=blobdiff_plain;f=youtube_dl%2Fdownloader%2Fhttp.py;fp=youtube_dl%2Fdownloader%2Fhttp.py;h=3ff26ff7086afbf9d1245a144406f891e9ff393c;hp=8a6638cc2d47c4afa08104d77e0877f92749ac8a;hb=bec49996c68fe73b4e17e7418290072a4c4b7cdb;hpb=c8be7d5f7417f5779cda2c02653f38401dd7a6b7 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: