mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-09-23 01:22:17 +02:00
Restructure for enabling/disabling
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user