Skip to content

Commit

Permalink
GitHub: Hotfixed BC support
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Apr 27, 2021
1 parent 1566ef7 commit b4f7faa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CB/GitHub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion CB/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>'
__docformat__ = 'restructuredtext en'
Expand Down

0 comments on commit b4f7faa

Please sign in to comment.