aboutsummaryrefslogtreecommitdiff
path: root/importer/providers/imgur.py
diff options
context:
space:
mode:
Diffstat (limited to 'importer/providers/imgur.py')
-rw-r--r--importer/providers/imgur.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/importer/providers/imgur.py b/importer/providers/imgur.py
new file mode 100644
index 0000000..dd8fb6e
--- /dev/null
+++ b/importer/providers/imgur.py
@@ -0,0 +1,9 @@
+from importer.providers.raw_image_base import RawImageProviderBase
+
+
+class Imgur(RawImageProviderBase):
+ regex = "^.*i\\.imgur\\.com.*\\.(jpg|jpeg)$"
+ _TEST = [{
+ "url": "https://i.imgur.com/fXLMjfp.jpg",
+ "paths": ["source_fXLMjfp.jpg"],
+ }]