mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-02 07:50:04 -08:00
20 lines
382 B
Python
20 lines
382 B
Python
from abc import ABC, abstractmethod
|
|
|
|
import httpx
|
|
|
|
from ..config.model import DownloadsConfig
|
|
from .params import DownloadParams
|
|
|
|
|
|
class BaseDownloader(ABC):
|
|
client: httpx.Client
|
|
|
|
def __init__(self, config: DownloadsConfig):
|
|
self.config = config
|
|
|
|
self.client = httpx.Client()
|
|
|
|
@abstractmethod
|
|
def download(self, params: DownloadParams):
|
|
pass
|