mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-24 19:38:36 +09:00
🎨 Update to revanced api v4
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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/{}/"
|
||||
|
||||
Reference in New Issue
Block a user