Преглед изворни кода

[downloader/http] Return actual download result (closes #14971)

Sergey M․ пре 7 година
родитељ
комит
bec49996c6
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      youtube_dl/downloader/http.py

+ 1 - 2
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: