From 746a9600b70cd37c4165df36d3bf03aa4c30915e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Tue, 15 Jun 2021 17:42:20 +0200 Subject: [PATCH] Fixed Tukui support (close #299) --- CB/Core.py | 4 ++-- CB/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CB/Core.py b/CB/Core.py index c55f3a9..da7bea6 100644 --- a/CB/Core.py +++ b/CB/Core.py @@ -200,14 +200,14 @@ def parse_url(self, url): elif url.startswith('https://www.tukui.org/classic-addons.php?id='): if self.clientType != 'wow_classic': raise RuntimeError('Incorrect client version.') - elif url.endswith('1') or url.endswith('2'): + elif url.endswith('=1') or url.endswith('=2'): raise RuntimeError('ElvUI and Tukui cannot be installed this way.') self.bulk_tukui_check() return TukuiAddon(url, self.tukuiCache) elif url.startswith('https://www.tukui.org/classic-tbc-addons.php?id='): if self.clientType != 'wow_burning_crusade': raise RuntimeError('Incorrect client version.') - elif url.endswith('1') or url.endswith('2'): + elif url.endswith('=1') or url.endswith('=2'): raise RuntimeError('ElvUI and Tukui cannot be installed this way.') self.bulk_tukui_check() return TukuiAddon(url, self.tukuiCache) diff --git a/CB/__init__.py b/CB/__init__.py index cee07ba..0dc9f32 100644 --- a/CB/__init__.py +++ b/CB/__init__.py @@ -2,7 +2,7 @@ import random from rich.terminal_theme import TerminalTheme -__version__ = '3.18.0' +__version__ = '3.18.1' __license__ = 'GPLv3' __copyright__ = '2019-2021, Paweł Jastrzębski ' __docformat__ = 'restructuredtext en'