From b4f7faa778cfa27d0152e895e7c17abca5488f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Tue, 27 Apr 2021 22:37:53 +0200 Subject: [PATCH] GitHub: Hotfixed BC support --- CB/GitHub.py | 6 ++++-- CB/__init__.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CB/GitHub.py b/CB/GitHub.py index 69c1c34..1db743b 100644 --- a/CB/GitHub.py +++ b/CB/GitHub.py @@ -44,9 +44,11 @@ def get_latest_package(self): for release in self.payload['assets']: if release['name'] and '-nolib' not in release['name'] \ and release['content_type'] in {'application/x-zip-compressed', 'application/zip'}: - if not latest and not release['name'].endswith('-classic.zip'): + if not latest and not release['name'].endswith('-classic.zip') and \ + not release['name'].endswith('-bc.zip'): latest = release['browser_download_url'] - elif not latestclassic and release['name'].endswith('-classic.zip'): + elif not latestclassic and release['name'].endswith('-classic.zip') and \ + not release['name'].endswith('-bc.zip'): latestclassic = release['browser_download_url'] if (self.clientType == 'wow_retail' and latest) or (self.clientType == 'wow_classic' and latest and not latestclassic): diff --git a/CB/__init__.py b/CB/__init__.py index 9763c32..8dbaf1b 100644 --- a/CB/__init__.py +++ b/CB/__init__.py @@ -2,7 +2,7 @@ import random from rich.terminal_theme import TerminalTheme -__version__ = '3.17.8' +__version__ = '3.17.9' __license__ = 'GPLv3' __copyright__ = '2019-2021, Paweł Jastrzębski ' __docformat__ = 'restructuredtext en'