From 34929f673f5ac87f454f4c6669bf2f96057ee810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 20 May 2020 20:04:46 +0200 Subject: [PATCH] readd 'session' to base downloader class (fixes #768) --- gallery_dl/downloader/common.py | 1 + gallery_dl/downloader/http.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/downloader/common.py b/gallery_dl/downloader/common.py index 2bf211f7..d8580759 100644 --- a/gallery_dl/downloader/common.py +++ b/gallery_dl/downloader/common.py @@ -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) diff --git a/gallery_dl/downloader/http.py b/gallery_dl/downloader/http.py index 01edcf81..6644827c 100644 --- a/gallery_dl/downloader/http.py +++ b/gallery_dl/downloader/http.py @@ -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