readd 'session' to base downloader class (fixes #768)

This commit is contained in:
Mike Fährmann 2020-05-20 20:04:46 +02:00
parent e19f665a44
commit 34929f673f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 1 additions and 1 deletions

View File

@ -18,6 +18,7 @@ class DownloaderBase():
def __init__(self, job): def __init__(self, job):
self.out = job.out self.out = job.out
self.session = job.extractor.session
self.part = self.config("part", True) self.part = self.config("part", True)
self.partdir = self.config("part-directory") self.partdir = self.config("part-directory")
self.log = job.get_logger("downloader." + self.scheme) self.log = job.get_logger("downloader." + self.scheme)

View File

@ -27,7 +27,6 @@ class HttpDownloader(DownloaderBase):
def __init__(self, job): def __init__(self, job):
DownloaderBase.__init__(self, job) DownloaderBase.__init__(self, job)
extractor = job.extractor extractor = job.extractor
self.session = extractor.session
self.chunk_size = 16384 self.chunk_size = 16384
self.downloading = False self.downloading = False