aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/http.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-04-24 02:54:17 +0700
committerSergey M․ <dstftw@gmail.com>2017-04-24 02:54:17 +0700
commitd3f0687cf7b049b976420056e02c26b5d96adeed (patch)
treef7667d3e5deae28fffebac8facfc79200361ddcc /youtube_dl/downloader/http.py
parenta4d6cf970ca17f1112465353ec1c2aa857dd2e69 (diff)
[downloader/fragment] Use temp file for current fragment
Diffstat (limited to 'youtube_dl/downloader/http.py')
-rw-r--r--youtube_dl/downloader/http.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py
index 2896a17af..af405b950 100644
--- a/youtube_dl/downloader/http.py
+++ b/youtube_dl/downloader/http.py
@@ -20,14 +20,10 @@ from ..utils import (
class HttpFD(FileDownloader):
- def real_download(self, filename_or_stream, info_dict):
+ def real_download(self, filename, info_dict):
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)
+ stream = None
# Do not include the Accept-Encoding header
headers = {'Youtubedl-no-compression': 'True'}