mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +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)
|
response = requests.get(revanced_api, timeout=request_timeout)
|
||||||
handle_request_response(response, revanced_api)
|
handle_request_response(response, revanced_api)
|
||||||
|
|
||||||
patches = response.json()["patches"]
|
patches = response.json()
|
||||||
|
|
||||||
possible_apps = set()
|
possible_apps = set()
|
||||||
for patch in patches:
|
for patch in patches:
|
||||||
if patch.get("compatiblePackages", None):
|
if patch.get("compatiblePackages", None):
|
||||||
for compatible_package in patch["compatiblePackages"]:
|
for compatible_package in patch["compatiblePackages"]:
|
||||||
possible_apps.add(compatible_package["name"])
|
possible_apps.add(compatible_package)
|
||||||
|
|
||||||
supported_app = set(Patches.support_app().keys())
|
supported_app = set(Patches.support_app().keys())
|
||||||
missing_support = sorted(possible_apps.difference(supported_app))
|
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_BASE_URL = "https://apkcombo.com"
|
||||||
APK_COMBO_GENERIC_URL = APK_COMBO_BASE_URL + "/genericApp/{}"
|
APK_COMBO_GENERIC_URL = APK_COMBO_BASE_URL + "/genericApp/{}"
|
||||||
not_found_icon = "https://img.icons8.com/bubbles/500/android-os.png"
|
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"
|
APK_MONK_BASE_URL = "https://www.apkmonk.com"
|
||||||
APKEEP = "apkeep"
|
APKEEP = "apkeep"
|
||||||
APK_MONK_APK_URL = APK_MONK_BASE_URL + "/app/{}/"
|
APK_MONK_APK_URL = APK_MONK_BASE_URL + "/app/{}/"
|
||||||
|
|||||||
Reference in New Issue
Block a user