Addon Manager: Fix bug in URL parsing

This commit is contained in:
Chris Hennes
2022-02-28 11:44:49 -06:00
parent d42b9a2fe1
commit 9fa0222369

View File

@@ -115,7 +115,7 @@ class Addon:
# The url should never end in ".git", so strip it if it's there
parsed_url = urlparse(self.url)
if parsed_url.path.endswith(".git"):
self.url = parsed_url.scheme + parsed_url.path[:-4]
self.url = parsed_url.scheme + "://" + parsed_url.netloc + parsed_url.path[:-4]
if parsed_url.query:
self.url += "?" + parsed_url.query
if parsed_url.fragment: