readd 'session' to base downloader class (fixes #768)
This commit is contained in:
parent
e19f665a44
commit
34929f673f
@ -18,6 +18,7 @@ class DownloaderBase():
|
||||
|
||||
def __init__(self, job):
|
||||
self.out = job.out
|
||||
self.session = job.extractor.session
|
||||
self.part = self.config("part", True)
|
||||
self.partdir = self.config("part-directory")
|
||||
self.log = job.get_logger("downloader." + self.scheme)
|
||||
|
@ -27,7 +27,6 @@ class HttpDownloader(DownloaderBase):
|
||||
def __init__(self, job):
|
||||
DownloaderBase.__init__(self, job)
|
||||
extractor = job.extractor
|
||||
self.session = extractor.session
|
||||
self.chunk_size = 16384
|
||||
self.downloading = False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user