mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
✨ Multi Source patch
This commit is contained in:
committed by
Nikhil Badyal
parent
a2ba0b89d1
commit
4283925f3e
@@ -51,7 +51,9 @@ class Github(Downloader):
|
||||
"""Extract repo owner and url from github url."""
|
||||
parsed_url = urlparse(url)
|
||||
path_segments = parsed_url.path.strip("/").split("/")
|
||||
|
||||
if len(path_segments) < 2:
|
||||
msg = f"Invalid GitHub URL format: {url}"
|
||||
raise DownloadError(msg)
|
||||
github_repo_owner = path_segments[0]
|
||||
github_repo_name = path_segments[1]
|
||||
tag_position = 3
|
||||
|
||||
Reference in New Issue
Block a user