]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[downloader/http] Return actual download result (closes #14971)
authorSergey M․ <dstftw@gmail.com>
Wed, 13 Dec 2017 16:49:05 +0000 (23:49 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 13 Dec 2017 16:49:05 +0000 (23:49 +0700)
youtube_dl/downloader/http.py

index 8a6638cc2d47c4afa08104d77e0877f92749ac8a..3ff26ff7086afbf9d1245a144406f891e9ff393c 100644 (file)
@@ -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: