X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=youtube-dl;a=blobdiff_plain;f=youtube_dl%2Fdownloader%2Fhttp.py;fp=youtube_dl%2Fdownloader%2Fhttp.py;h=af405b9509572bfd42bb11bd48bec5300d8105b3;hp=2896a17afe9806efe56e71e1b36532bf6d8ba8b0;hb=d3f0687cf7b049b976420056e02c26b5d96adeed;hpb=a4d6cf970ca17f1112465353ec1c2aa857dd2e69 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'}