Fix base provider class

This commit is contained in:
Nirvana
2025-11-22 13:08:03 +01:00
parent 049b65f093
commit 9e0e577fca
6 changed files with 26 additions and 22 deletions
+3 -2
View File
@@ -60,7 +60,7 @@ class StreamingProvider(ABC):
pass
@abstractmethod
def fetch_channels(self, **kwargs) -> List[StreamingChannel]:
def get_channels(self, **kwargs) -> List[StreamingChannel]:
"""
Fetch channels from the provider
@@ -82,7 +82,8 @@ class StreamingProvider(ABC):
# """
# return []
def get_drm_configs_by_id(self, channel_id: str, **kwargs) -> List[DRMConfig]:
@abstractmethod
def get_drm(self, channel_id: str, **kwargs) -> List[DRMConfig]:
"""
Get all DRM configurations for a channel by ID