Restructure for enabling/disabling

This commit is contained in:
Nirvana
2025-12-25 15:31:00 +01:00
parent f998d35eac
commit 0cd41478a5
@@ -481,4 +481,14 @@ class MagentaProvider(StreamingProvider):
@classmethod
def get_supported_countries(cls) -> List[str]:
"""Get list of supported countries"""
return cls.SUPPORTED_COUNTRIES.copy()
return cls.SUPPORTED_COUNTRIES.copy()
@classmethod
def get_static_label(cls, country: str = None) -> str:
"""Override to provide country-specific labels including Max TV for Croatia"""
if country and country.upper() == 'HR':
return "Max TV (HR)"
elif country:
return f"Magenta TV ({country.upper()})"
else:
return "Magenta TV"