mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
🎨 Updated revanced patches API
This commit is contained in:
@@ -101,16 +101,15 @@ def generate_markdown_table(data: List[List[str]]) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
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)
|
response = requests.get(repo_url, timeout=10)
|
||||||
handle_github_response(response)
|
handle_github_response(response)
|
||||||
|
|
||||||
parsed_data = response.json()
|
patches = response.json()
|
||||||
compatible_packages = parsed_data["patches"]
|
|
||||||
|
|
||||||
possible_apps = set()
|
possible_apps = set()
|
||||||
for package in compatible_packages:
|
for patch in patches:
|
||||||
for compatible_package in package["compatiblePackages"]:
|
for compatible_package in patch["compatiblePackages"]:
|
||||||
possible_apps.add(compatible_package["name"])
|
possible_apps.add(compatible_package["name"])
|
||||||
|
|
||||||
supported_app = set(Patches.support_app().keys())
|
supported_app = set(Patches.support_app().keys())
|
||||||
|
|||||||
Reference in New Issue
Block a user