diff --git a/CB/Core.py b/CB/Core.py index 34fe7d9..af53e89 100644 --- a/CB/Core.py +++ b/CB/Core.py @@ -198,11 +198,11 @@ def parse_url(self, url): return GitHubAddon(url, self.clientType, self.config['GHAPIKey']) elif url.lower() == 'elvui': self.bulk_tukui_check() - return TukuiAddon('ElvUI', self.tukuiCache, + return TukuiAddon('elvui', self.tukuiCache, self.masterConfig['ClientTypes'][self.clientType]['CurrentVersion']) elif url.lower() == 'tukui': self.bulk_tukui_check() - return TukuiAddon('Tukui', self.tukuiCache, + return TukuiAddon('tukui', self.tukuiCache, self.masterConfig['ClientTypes'][self.clientType]['CurrentVersion']) elif url.lower() in self.masterConfig['CustomRepository'].keys(): return GitHubAddonRaw(self.masterConfig['CustomRepository'][url.lower()], self.config['GHAPIKey']) @@ -551,7 +551,7 @@ def bulk_check(self, addons): @retry(custom_error='Failed to parse Tukui API data') def bulk_tukui_check(self): if not self.tukuiCache: - self.tukuiCache = requests.get('https://tukui-api.acidweb.dev/v1/addons', headers=HEADERS, timeout=5).json() + self.tukuiCache = requests.get('https://api.tukui.org/v1/addons', headers=HEADERS, timeout=5).json() def detect_accounts(self): if os.path.isdir(Path('WTF/Account')): diff --git a/CB/Tukui.py b/CB/Tukui.py index 9a5a844..a261869 100644 --- a/CB/Tukui.py +++ b/CB/Tukui.py @@ -9,7 +9,7 @@ class TukuiAddon: @retry() def __init__(self, slug, checkcache, clientversion): for addon in checkcache: - if addon['name'] == slug: + if addon['slug'] == slug: self.payload = addon break else: