mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-10-22 15:52:32 +02:00
Restructure for enabling/disabling
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user