aboutsummaryrefslogtreecommitdiff
path: root/importer/providers/i_reddit.py
blob: 13fc70eb17e55eee3eda2cac65ed3833b6635ab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from importer.providers.raw_image_base import RawImageProviderBase


class IReddit(RawImageProviderBase):
    regex = "^.*i\\.redd\\.it.*\\.(jpg|jpeg|gif)$"
    _TEST = [
        {
            "url": "https://i.redd.it/pjj1ll1b2rr41.jpg",
            "paths": ["source_pjj1ll1b2rr41.jpg"]
        },
        {
            "url": "https://i.redd.it/55vpi6ol5jc71.gif",
            "paths": ['source_55vpi6ol5jc71.gif']
        }
    ]