🎨 Updated function name

This commit is contained in:
Nikhil Badyal
2023-08-22 16:52:33 +05:30
parent 70dbea76c9
commit f1873a2f85
4 changed files with 9 additions and 11 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ from loguru import logger
from src.config import RevancedConfig
from src.downloader.download import Downloader
from src.exceptions import DownloadFailure
from src.utils import handle_github_response, update_changelog
from src.utils import handle_request_response, update_changelog
class Github(Downloader):
@@ -36,7 +36,7 @@ class Github(Downloader):
logger.debug("Using personal access token")
headers["Authorization"] = f"token {self.config.personal_access_token}"
response = requests.get(repo_url, headers=headers, timeout=60)
handle_github_response(response)
handle_request_response(response)
if repo_name == "revanced-patches":
download_url = response.json()["assets"][1]["browser_download_url"]
else:
@@ -80,7 +80,7 @@ class Github(Downloader):
if config.personal_access_token:
headers["Authorization"] = f"token {config.personal_access_token}"
response = requests.get(api_url, headers=headers, timeout=60)
handle_github_response(response)
handle_request_response(response)
assets = response.json()["assets"]
try:
filter_pattern = re.compile(asset_filter)