🎨 Update to revanced api v4

This commit is contained in:
Nikhil Badyal
2025-04-27 23:07:10 +05:30
parent db1f5907dd
commit 3cf5c80c15
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -192,13 +192,13 @@ def main() -> None:
response = requests.get(revanced_api, timeout=request_timeout)
handle_request_response(response, revanced_api)
patches = response.json()["patches"]
patches = response.json()
possible_apps = set()
for patch in patches:
if patch.get("compatiblePackages", None):
for compatible_package in patch["compatiblePackages"]:
possible_apps.add(compatible_package["name"])
possible_apps.add(compatible_package)
supported_app = set(Patches.support_app().keys())
missing_support = sorted(possible_apps.difference(supported_app))
+1 -1
View File
@@ -17,7 +17,7 @@ PLAY_STORE_APK_URL = f"{PLAY_STORE_BASE_URL}/store/apps/details?id=" + "{}"
APK_COMBO_BASE_URL = "https://apkcombo.com"
APK_COMBO_GENERIC_URL = APK_COMBO_BASE_URL + "/genericApp/{}"
not_found_icon = "https://img.icons8.com/bubbles/500/android-os.png"
revanced_api = "https://api.revanced.app/v2/patches/latest"
revanced_api = "https://api.revanced.app/v4/patches/list"
APK_MONK_BASE_URL = "https://www.apkmonk.com"
APKEEP = "apkeep"
APK_MONK_APK_URL = APK_MONK_BASE_URL + "/app/{}/"