mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-10-31 03:02:41 +01:00
Restructure for enabling/disabling
This commit is contained in:
@@ -23,8 +23,12 @@ class ProviderMetadata:
|
||||
|
||||
if self.plugin_class.supports_multiple_countries():
|
||||
self.name = f"{self.plugin_name}_{self.country}"
|
||||
# For multi-country providers, include country in label
|
||||
self.label = self.plugin_class.get_static_label(self.country)
|
||||
else:
|
||||
self.name = self.plugin_name
|
||||
self.name = self.plugin_name # e.g., "hrti" (no country suffix)
|
||||
# For single-country providers, don't include country in label
|
||||
self.label = self.plugin_class.get_static_label() # ← Call WITHOUT country!
|
||||
|
||||
self.label = self.plugin_class.get_static_label(self.country)
|
||||
self.supported_auth_types = self.plugin_class.get_static_auth_types()
|
||||
|
||||
Reference in New Issue
Block a user