projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[downloader/fragment] Use temp file for current fragment
[youtube-dl]
/
youtube_dl
/
downloader
/
http.py
diff --git
a/youtube_dl/downloader/http.py
b/youtube_dl/downloader/http.py
index 2896a17afe9806efe56e71e1b36532bf6d8ba8b0..af405b9509572bfd42bb11bd48bec5300d8105b3 100644
(file)
--- a/
youtube_dl/downloader/http.py
+++ b/
youtube_dl/downloader/http.py
@@
-20,14
+20,10
@@
from ..utils import (
class HttpFD(FileDownloader):
class HttpFD(FileDownloader):
- def real_download(self, filename
_or_stream
, info_dict):
+ def real_download(self, filename, info_dict):
url = info_dict['url']
url = info_dict['url']
- filename = filename_or_stream
- stream = None
- if hasattr(filename_or_stream, 'write'):
- stream = filename_or_stream
- filename = '-'
tmpfilename = self.temp_name(filename)
tmpfilename = self.temp_name(filename)
+ stream = None
# Do not include the Accept-Encoding header
headers = {'Youtubedl-no-compression': 'True'}
# Do not include the Accept-Encoding header
headers = {'Youtubedl-no-compression': 'True'}