Add provider logos

This commit is contained in:
Nirvana
2025-11-26 16:34:12 +01:00
parent 86d84eb0d3
commit 241c544e98
5 changed files with 20 additions and 6 deletions
@@ -6,6 +6,8 @@
# SSO endpoints discovery URL
JOYN_SSO_DISCOVERY_URL = 'https://auth.joyn.de/sso/endpoints'
JOYN_LOGO = 'https://upload.wikimedia.org/wikipedia/de/thumb/7/74/Joyn_%28Streaminganbieter%29_logo.svg/2560px-Joyn_%28Streaminganbieter%29_logo.svg.png'
# Default client IDs for different platforms (fallback)
DEVICE_IDS = {
'web': '709115c2-f87e-4bad-9b94-28ac08d72cd9',
@@ -46,7 +46,7 @@ from .constants import (
GRAPHQL_LIVE_CHANNELS_FILTER,
GRAPHQL_MAX_RESULTS,
GRAPHQL_OFFSET,
GRAPHQL_QUERY_HASHES
GRAPHQL_QUERY_HASHES, JOYN_LOGO
)
@@ -166,7 +166,7 @@ class JoynProvider(StreamingProvider):
@property
def provider_logo(self) -> str:
return ''
return JOYN_LOGO
@property
def uses_dynamic_manifests(self) -> bool:
@@ -9,7 +9,7 @@ SUPPORTED_COUNTRIES = ['de']
# Default country
DEFAULT_COUNTRY = 'de'
MAGENTA2_LOGO = 'https://upload.wikimedia.org/wikipedia/commons/thumb/1/13/Magenta_TV_Logo_%282021%29.svg/2560px-Magenta_TV_Logo_%282021%29.svg.png'
MAGENTA2_LOGO = 'https://upload.wikimedia.org/wikipedia/commons/thumb/e/e4/Magenta_TV_Logo_2024.svg/2339px-Magenta_TV_Logo_2024.svg.png'
# Platform configuration
DEFAULT_PLATFORM = 'android-tv'
@@ -11,6 +11,9 @@ SUPPORTED_COUNTRIES = ['hr', 'pl', 'me', 'at', 'hu']
# Default country
DEFAULT_COUNTRY = 'at'
MAX_TV_LOGO = 'https://www.lyngsat.com/logo/corp/mm/max-tv-hr.png'
MAGENTA_TV_PL_LOGO = 'https://magentatv.pl/client/assets/6700c91b4408a2abe2a4.webp'
# Country-specific configuration
COUNTRY_CONFIG = {
'hr': {
@@ -20,6 +20,7 @@ from .constants import (
DEFAULT_MAX_RETRIES,
DRM_SYSTEM_WIDEVINE,
DRM_REQUEST_HEADERS,
MAGENTA_TV_PL_LOGO,
WV_URL,
CONTENT_TYPE_LIVE,
STREAMING_FORMAT_DASH,
@@ -27,7 +28,7 @@ from .constants import (
get_natco_key,
get_guest_headers,
get_base_url,
get_language
get_language, MAX_TV_LOGO
)
@@ -95,11 +96,19 @@ class MagentaProvider(StreamingProvider):
@property
def provider_label(self) -> str:
return f'Magenta TV ({self.country.upper()})'
if self.country.lower() == 'hr':
return "Max TV (HR)"
else:
return f'Magenta TV ({self.country.upper()})'
@property
def provider_logo(self) -> str:
return ''
if self.country.lower() == 'hr':
return MAX_TV_LOGO
elif self.country.lower() == 'pl':
return MAGENTA_TV_PL_LOGO
else:
return ''
@property
def uses_dynamic_manifests(self) -> bool: