Skip to content

Commit

Permalink
readd 'session' to base downloader class (fixes #768)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed May 20, 2020
1 parent e19f665 commit 34929f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions gallery_dl/downloader/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion gallery_dl/downloader/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 34929f6

Please sign in to comment.