aboutsummaryrefslogtreecommitdiff
path: root/importer/providers/providerbase.py
diff options
context:
space:
mode:
authorgabrielgio <gabriel.giovanini@pm.me>2021-07-27 23:15:53 +0200
committergabrielgio <gabriel.giovanini@pm.me>2021-07-27 23:28:51 +0200
commitb8d69f9bf5a03fd6d8b6a477f3b7ca8f10c27bda (patch)
tree6652fd8b3e89b652791167e73b293b57d0b6496b /importer/providers/providerbase.py
parent3d54b3d91d0c175feae82c413fd0139545d46e2a (diff)
downloadreddit-nextcloud-importer-b8d69f9bf5a03fd6d8b6a477f3b7ca8f10c27bda.tar.gz
reddit-nextcloud-importer-b8d69f9bf5a03fd6d8b6a477f3b7ca8f10c27bda.tar.bz2
reddit-nextcloud-importer-b8d69f9bf5a03fd6d8b6a477f3b7ca8f10c27bda.zip
feat: Move to gallery-dl
As it turns out there is already a project that does what I want but better.
Diffstat (limited to 'importer/providers/providerbase.py')
-rw-r--r--importer/providers/providerbase.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/importer/providers/providerbase.py b/importer/providers/providerbase.py
deleted file mode 100644
index 51b525e..0000000
--- a/importer/providers/providerbase.py
+++ /dev/null
@@ -1,30 +0,0 @@
-import os
-from typing import List
-
-
-class ProviderBase:
- paths: List[str]
- downloaded: bool
- regex: str
-
- _TEST = [{
- "url": "https://i.imgur.com/fXLMjfp.jpg",
- "paths": ["source_fXLMjfp.jpg"],
- }]
-
- def __init__(self, url: str, **kwargs):
- self.url = url
- self.paths = []
- self.downloaded = False
-
- def download(self):
- pass
-
- def __enter__(self):
- return self
-
- def __exit__(self, exc_type, exc_val, exc_tb):
- if self.paths:
- for path in self.paths:
- if os.path.exists(path):
- os.unlink(path)