projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
release 2020.07.28
[youtube-dl]
/
youtube_dl
/
downloader
/
http.py
diff --git
a/youtube_dl/downloader/http.py
b/youtube_dl/downloader/http.py
index 970103a8ddcca661f01fe7c3837e0050871b542d..5046878dfcd874013e737e85d32764a95737406e 100644
(file)
--- a/
youtube_dl/downloader/http.py
+++ b/
youtube_dl/downloader/http.py
@@
-227,7
+227,7
@@
class HttpFD(FileDownloader):
while True:
try:
# Download and write
while True:
try:
# Download and write
- data_block = ctx.data.read(block_size if
not is_test
else min(block_size, data_len - byte_counter))
+ data_block = ctx.data.read(block_size if
data_len is None
else min(block_size, data_len - byte_counter))
# socket.timeout is a subclass of socket.error but may not have
# errno set
except socket.timeout as e:
# socket.timeout is a subclass of socket.error but may not have
# errno set
except socket.timeout as e: