Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #3

Merged
merged 2 commits into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,17 @@ def main():
panic("Failed to fetch the latest build version")
return

# Fetch Revanced patches version information
rvx_patches_url = "https://api.github.com/repos/inotia00/revanced-patches/releases/latest"
response = requests.get(rvx_patches_url)
rvx_patches_data = response.json()
rvx_patches_version = rvx_patches_data["tag_name"]
def get_latest_revanced_patches_version(url="https://api.github.com/repos/inotia00/revanced-patches/releases"):
response = requests.get(url)

releases_data = response.json()

for release in releases_data:
tag_name = release.get("tag_name")
if tag_name:
return tag_name

rvx_patches_version = get_latest_revanced_patches_version()

# Begin stuff
if last_build_version.tag_name != f"{latest_version.version}_{rvx_patches_version}":
Expand Down
Loading