Files
BDFR_Web/bdfr/site_downloaders/gif_delivery_network.py
2021-04-28 19:08:31 +10:00

22 lines
646 B
Python

#!/usr/bin/env python3
from typing import Optional
from praw.models import Submission
from bdfr.resource import Resource
from bdfr.site_authenticator import SiteAuthenticator
from bdfr.site_downloaders.redgifs import Redgifs
class GifDeliveryNetwork(Redgifs):
def __init__(self, post: Submission):
super().__init__(post)
def find_resources(self, authenticator: Optional[SiteAuthenticator] = None) -> list[Resource]:
return super(GifDeliveryNetwork, self).find_resources(authenticator)
@staticmethod
def _get_link(url: str) -> str:
return super(GifDeliveryNetwork, GifDeliveryNetwork)._get_link(url)