aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/http.py
diff options
context:
space:
mode:
authorsprhawk <465558+sprhawk@users.noreply.github.com>2017-12-26 22:27:26 +0800
committersprhawk <465558+sprhawk@users.noreply.github.com>2017-12-26 22:27:26 +0800
commitc33de004e13da11f1ae3cad7310b36500cfb9d28 (patch)
treec742e448af6c126eca4b259c85f83177aec54847 /youtube_dl/downloader/http.py
parent42a1012c7767306626c5358a18ad3e86417bd7b7 (diff)
parentdb145ee54a57f5ccc89639de8c589eb111a91b19 (diff)
Merge branch 'master' of github.com:rg3/youtube-dl into weibo
Diffstat (limited to 'youtube_dl/downloader/http.py')
-rw-r--r--youtube_dl/downloader/http.py3
1 files changed, 1 insertions, 2 deletions
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: