From 28bd841e1ba9373a749860b9773ca97b3dddde3d Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Tue, 22 Aug 2023 10:44:22 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Updated=20revanced=20patches=20A?= =?UTF-8?q?PI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/status_check.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/status_check.py b/scripts/status_check.py index e05817b..6fdf386 100644 --- a/scripts/status_check.py +++ b/scripts/status_check.py @@ -101,16 +101,15 @@ def generate_markdown_table(data: List[List[str]]) -> str: def main() -> None: - repo_url = "https://api.revanced.app/v2/patches/latest" + repo_url = "https://releases.revanced.app/patches" response = requests.get(repo_url, timeout=10) handle_github_response(response) - parsed_data = response.json() - compatible_packages = parsed_data["patches"] + patches = response.json() possible_apps = set() - for package in compatible_packages: - for compatible_package in package["compatiblePackages"]: + for patch in patches: + for compatible_package in patch["compatiblePackages"]: possible_apps.add(compatible_package["name"]) supported_app = set(Patches.support_app().keys())