aboutsummaryrefslogtreecommitdiff
path: root/importer/downloader.py
diff options
context:
space:
mode:
authorgabrielgio <gabriel.giovanini@pm.me>2021-07-26 22:28:05 +0200
committergabrielgio <gabriel.giovanini@pm.me>2021-07-26 22:36:04 +0200
commitc8bd60648d193f85479d5f380b05bb6d4394ffda (patch)
treebf28d510da708ce45c39a6e3accdc514a6b2cd1c /importer/downloader.py
parentbf0cde0b0bb77cd75db03327a461abf26b90c465 (diff)
downloadreddit-nextcloud-importer-c8bd60648d193f85479d5f380b05bb6d4394ffda.tar.gz
reddit-nextcloud-importer-c8bd60648d193f85479d5f380b05bb6d4394ffda.tar.bz2
reddit-nextcloud-importer-c8bd60648d193f85479d5f380b05bb6d4394ffda.zip
fix: Various fixes
Diffstat (limited to 'importer/downloader.py')
-rw-r--r--importer/downloader.py7
1 files changed, 2 insertions, 5 deletions
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)