From c8bd60648d193f85479d5f380b05bb6d4394ffda Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Mon, 26 Jul 2021 22:28:05 +0200 Subject: fix: Various fixes --- importer/downloader.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'importer/downloader.py') diff --git a/importer/downloader.py b/importer/downloader.py index 1dd1684..290c9e2 100644 --- a/importer/downloader.py +++ b/importer/downloader.py @@ -15,8 +15,5 @@ class Downloader: self.url = url self.reddit = reddit - def download(self): - with self.Provider(url=self.url, reddit=self.reddit) as provider: - provider.download() - self.paths = provider.paths - self.downloaded = provider.downloaded + def provider(self): + return self.Provider(url=self.url, reddit=self.reddit) -- cgit v1.2.3