27 lines
667 B
Python
27 lines
667 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class Loader(ABC):
|
|
@abstractmethod
|
|
def Search(self, word: str) -> list:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def IsLanguage(self, season: int, episode: int, key: str, language: str = "German Dub") -> bool:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def Download(self, baseDirectory: str, serieFolder: str, season: int, episode: int, key: str, progress_callback: callable = None) -> bool:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def GetSiteKey(self) -> str:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def GetTitle(self) -> str:
|
|
pass
|
|
|
|
@abstractmethod
|
|
def get_season_episode_count(self, slug: str) -> dict:
|
|
pass |