From 86cee158dddb40143960a463d9fb5304b34cd2ef Mon Sep 17 00:00:00 2001 From: Nirvana Date: Thu, 25 Dec 2025 22:04:04 +0100 Subject: [PATCH] Restructure for enabling/disabling --- .../providers/magentaeu/provider.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/streaming_providers/providers/magentaeu/provider.py b/lib/streaming_providers/providers/magentaeu/provider.py index 0b81756..5728874 100644 --- a/lib/streaming_providers/providers/magentaeu/provider.py +++ b/lib/streaming_providers/providers/magentaeu/provider.py @@ -483,6 +483,20 @@ class MagentaEUProvider(StreamingProvider): """Get list of supported countries""" return cls.SUPPORTED_COUNTRIES.copy() + @classmethod + def get_static_logo(cls, country: str = None) -> str: + """Static version for metadata extraction.""" + if country: + country_lower = country.lower() + if country_lower == 'at': + return cls.PROVIDER_LOGO_AT + elif country_lower == 'hr': + return cls.PROVIDER_LOGO_HR + elif country_lower == 'pl': + return cls.PROVIDER_LOGO_PL + # Return HR logo as default + return cls.PROVIDER_LOGO_HR + @classmethod def get_static_label(cls, country: str = None) -> str: """Override to provide country-specific labels including Max TV for Croatia"""