Skip to content

Commit

Permalink
GitHub support tweaks (close #347)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Sep 12, 2022
1 parent 39f0f2a commit 429f3a3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CB/GitHub.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,10 @@ def get_latest_package(self):
latestclassic = None
latestwrath = None
for release in self.payloads[self.releaseDepth]['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') and \
not release['name'].endswith('-bc.zip') and not release['name'].endswith('-bcc.zip') and \
not release['name'].endswith('-wrath.zip'):
if release['name'] and release['name'].endswith('.zip') and '-nolib' not in release['name'] \
and release['content_type'] in ['application/x-zip-compressed', 'application/zip', 'raw']:
if not latest and not release['name'].endswith(('-classic.zip', '-bc.zip', '-bcc.zip',
'-wrath.zip')):
latest = release['url']
elif not latestclassic and release['name'].endswith('-classic.zip'):
latestclassic = release['url']
Expand Down

0 comments on commit 429f3a3

Please sign in to comment.