summaryrefslogtreecommitdiff
path: root/branding/scripts/gen-providers-json
diff options
context:
space:
mode:
Diffstat (limited to 'branding/scripts/gen-providers-json')
-rwxr-xr-xbranding/scripts/gen-providers-json15
1 files changed, 7 insertions, 8 deletions
diff --git a/branding/scripts/gen-providers-json b/branding/scripts/gen-providers-json
index 0c95cb9..8fd64c6 100755
--- a/branding/scripts/gen-providers-json
+++ b/branding/scripts/gen-providers-json
@@ -5,8 +5,7 @@ import json
import os
import sys
-
-from provider import getDefaultProvider
+from provider import getDefaultProviders
from provider import getProviderData
OUTFILE = 'providers.json'
@@ -22,14 +21,14 @@ def generateProvidersJSON(configPath, outputJSONPath):
# For multi-provider, just add more providers to the dict
providers = {}
- defaultProvider = getDefaultProvider(config)
+ defaultProviders = getDefaultProviders(config)
- providers['default'] = defaultProvider
+ providers['default'] = defaultProviders[0]
providers['providers'] = []
- providerData = getProviderData(defaultProvider, config)
- addCaData(providerData, configPath)
-
- providers['providers'].append(providerData)
+ for p in defaultProviders:
+ providerData = getProviderData(p, config)
+ addCaData(providerData, configPath)
+ providers['providers'].append(providerData)
with open(outputJSONPath, 'w', encoding='utf-8') as f:
json.dump(providers, f, ensure_ascii=False, indent=4)