Skip to content

Commit

Permalink
Fixed possible issues with URL
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 22, 2019
1 parent 6410032 commit ea2934c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CB/Core.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def update_config(self):
addon['URL'] = 'Tukui'
# 2.7.3
addon['Directories'] = list(filter(None, set(addon['Directories'])))
# 3.0.2
if addon['URL'].endswith('/'):
addon['URL'] = addon['URL'][:-1]
for add in [['2.1.0', 'WAUsername', ''],
['2.2.0', 'WAAccountName', ''],
['2.2.0', 'WAAPIKey', ''],
Expand Down Expand Up @@ -164,6 +167,8 @@ def add_addon(self, url, ignore):
url = f'https://www.tukui.org/addons.php?id={url[3:]}'
elif url.startswith('tuc:'):
url = f'https://www.tukui.org/classic-addons.php?id={url[4:]}'
if url.endswith('/'):
url = url[:-1]
addon = self.check_if_installed(url)
if not addon:
if ignore:
Expand Down
2 changes: 1 addition & 1 deletion CB/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import string
import random

__version__ = '3.0.1'
__version__ = '3.0.2'
__license__ = 'GPLv3'
__copyright__ = '2019, Paweł Jastrzębski <[email protected]>'
__docformat__ = 'restructuredtext en'
Expand Down

0 comments on commit ea2934c

Please sign in to comment.