Skip to content

Commit

Permalink
Fixed issue with Tukui parser (close #161)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 2, 2020
1 parent fe9a413 commit f46381d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CB/Tukui.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ def __init__(self, url, isclassic):
self.payload = self.payload.json()
self.name = self.payload['name'].strip().strip('\u200b')
self.downloadUrl = self.payload['url']
self.changelogUrl = self.payload['changelog']
self.currentVersion = self.payload['version']
self.archive = None
self.directories = []

if 'changelog' in self.payload:
self.changelogUrl = self.payload['changelog']
else:
self.changelogUrl = None

@retry()
def get_addon(self):
self.archive = zipfile.ZipFile(io.BytesIO(requests.get(self.downloadUrl, headers=HEADERS).content))
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.10.1'
__version__ = '3.10.2'
__license__ = 'GPLv3'
__copyright__ = '2019-2020, Paweł Jastrzębski <[email protected]>'
__docformat__ = 'restructuredtext en'
Expand Down

0 comments on commit f46381d

Please sign in to comment.