Restructure for enabling/disabling

This commit is contained in:
Nirvana
2025-12-25 22:58:44 +01:00
parent 7559f68a75
commit 805ca0e614
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -105,10 +105,13 @@ class StreamingProvider(ABC):
return cls.SUPPORTED_AUTH_TYPES.copy()
@classmethod
def get_static_logo(cls) -> str:
def get_static_logo(cls, country: str = None) -> str:
"""
Get provider logo URL without instantiation.
Args:
country: Optional country code for country-specific logos
Returns:
Logo URL string
"""
@@ -46,7 +46,7 @@ class ProviderMetadata:
# Rest of the method remains the same...
self.label = self.plugin_class.get_static_label(self.country)
self.supported_auth_types = self.plugin_class.get_static_auth_types()
self.logo = self.plugin_class.get_static_logo()
self.logo = self.plugin_class.get_static_logo(self.country)
self.supported_countries = self.plugin_class.get_static_supported_countries()
self.requires_credentials = any(
auth_type in ['user_credentials', 'client_credentials']