mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-10-17 13:22:29 +02:00
Restructure for enabling/disabling
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# streaming_providers/providers/magenta2/provider.py
|
||||
# -*- coding: utf-8 -*-
|
||||
from typing import Dict, Optional, List, Any, Tuple
|
||||
from typing import Dict, Optional, List, Any, Tuple, ClassVar
|
||||
import json
|
||||
import base64
|
||||
import time
|
||||
@@ -41,6 +41,8 @@ from .constants import (
|
||||
|
||||
|
||||
class Magenta2Provider(StreamingProvider):
|
||||
PROVIDER_LABEL: ClassVar[str] = "Magenta TV 2.0"
|
||||
PROVIDER_LOGO: ClassVar[str] = MAGENTA2_LOGO
|
||||
"""
|
||||
Magenta2 streaming provider implementation with enhanced dynamic discovery
|
||||
"""
|
||||
@@ -391,7 +393,7 @@ class Magenta2Provider(StreamingProvider):
|
||||
|
||||
@property
|
||||
def provider_logo(self) -> str:
|
||||
return MAGENTA2_LOGO
|
||||
return self.PROVIDER_LOGO
|
||||
|
||||
@property
|
||||
def uses_dynamic_manifests(self) -> bool:
|
||||
|
||||
@@ -14,6 +14,7 @@ from ...base.models.proxy_models import ProxyConfig
|
||||
|
||||
class RTLPlusProvider(StreamingProvider):
|
||||
# Provider constants
|
||||
PROVIDER_LABEL: ClassVar[str] = "RTL+"
|
||||
PROVIDER_LOGO: ClassVar[str] = RTLPlusDefaults.RTLPLUS_LOGO
|
||||
|
||||
def __init__(self, country: str = 'DE', config: Optional[Dict] = None,
|
||||
|
||||
Reference in New Issue
Block a user