Skip to content

Commit

Permalink
Tweaked Tukui.org support
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed May 31, 2023
1 parent 439f8ef commit 22df9ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CB/Core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down Expand Up @@ -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')):
Expand Down
2 changes: 1 addition & 1 deletion CB/Tukui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 22df9ff

Please sign in to comment.