From 5b3b80c4163602911174026fc2f60cad1cb5c337 Mon Sep 17 00:00:00 2001 From: Nirvana Date: Thu, 25 Dec 2025 21:14:51 +0100 Subject: [PATCH] Restructure for enabling/disabling --- lib/streaming_providers/providers/hrti/provider.py | 3 +-- lib/streaming_providers/providers/magentaeu/provider.py | 2 +- lib/streaming_providers/providers/rtlplus/provider.py | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/streaming_providers/providers/hrti/provider.py b/lib/streaming_providers/providers/hrti/provider.py index f22ab5f..93786df 100644 --- a/lib/streaming_providers/providers/hrti/provider.py +++ b/lib/streaming_providers/providers/hrti/provider.py @@ -22,9 +22,8 @@ class HRTiProvider(StreamingProvider): # STATIC METADATA (NEW) # ============================================================================ PROVIDER_LABEL: ClassVar[str] = "HRTi" - SUPPORTED_AUTH_TYPES: ClassVar[List[str]] = ['user_credentials'] + SUPPORTED_AUTH_TYPES: ClassVar[List[str]] = ['client_credentials', 'user_credentials'] PROVIDER_LOGO: ClassVar[str] = HRTiDefaults.PROVIDER_LOGO - SUPPORTED_COUNTRIES: ClassVar[List[str]] = ['HR'] # Croatia only def __init__(self, country: str = 'HR', config: Optional[Dict] = None, proxy_config: Optional[ProxyConfig] = None): super().__init__(country) diff --git a/lib/streaming_providers/providers/magentaeu/provider.py b/lib/streaming_providers/providers/magentaeu/provider.py index 406f7ad..0b81756 100644 --- a/lib/streaming_providers/providers/magentaeu/provider.py +++ b/lib/streaming_providers/providers/magentaeu/provider.py @@ -33,7 +33,7 @@ from .constants import ( ) -class MagentaProvider(StreamingProvider): +class MagentaEUProvider(StreamingProvider): # Provider constants with country-specific logos PROVIDER_LOGO_AT: ClassVar[str] = MAGENTA_TV_AT_LOGO PROVIDER_LOGO_PL: ClassVar[str] = MAGENTA_TV_PL_LOGO diff --git a/lib/streaming_providers/providers/rtlplus/provider.py b/lib/streaming_providers/providers/rtlplus/provider.py index 04a3d78..ad193d1 100644 --- a/lib/streaming_providers/providers/rtlplus/provider.py +++ b/lib/streaming_providers/providers/rtlplus/provider.py @@ -16,6 +16,7 @@ class RTLPlusProvider(StreamingProvider): # Provider constants PROVIDER_LABEL: ClassVar[str] = "RTL+" PROVIDER_LOGO: ClassVar[str] = RTLPlusDefaults.RTLPLUS_LOGO + SUPPORTED_AUTH_TYPES: ClassVar[List[str]] = ['client_credentials', 'user_credentials'] def __init__(self, country: str = 'DE', config: Optional[Dict] = None, proxy_config: Optional[ProxyConfig] = None):