Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
v2.6 code
Browse files Browse the repository at this point in the history
  • Loading branch information
nyxiereal authored Feb 10, 2023
1 parent 2922429 commit 0df1283
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions RVP.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from colorama import init, Fore
except:
print("Installing packages...")
system("python -m pip install XeLib lastversion ping3 tqdm wget")
system("python -m pip install XeLib lastversion ping3 tqdm")

init(autoreset=True)

Expand Down Expand Up @@ -69,15 +69,15 @@ def update():

newver = latest("xemulat/ReVancedPacker")
if str(version) == str(newver):
state = 'Up-To-Date'
state = f'{Fore.GREEN}Up-To-Date{Fore.RESET}'

elif str(newver) > str(version):
# Triggers the update after outdated version is detected
state = 'Outdated'
state = f'{Fore.RED}Outdated{Fore.RESET}'
update()

else:
state = 'cant'
state = f'{Fore.YELLOW}Unable to update{Fore.RESET}'

def checkintegrations(choose):
if achooser(choose, "1"): return('com.google.android.youtube')
Expand All @@ -89,7 +89,8 @@ def checkintegrations(choose):
elif achooser(choose, "7"): return('com.crunchyroll.crunchyroid')
elif achooser(choose, "8"): return('tv.twitch.android.app')
else: return(None)



def main():
cls()
javapath = 'java'
Expand Down Expand Up @@ -194,6 +195,11 @@ def main():

else: print(f"No item named {choose}...") ; sleep(2)

printer.lprint('Downloading ReVanced Tools...')
download(((res_json['tools'])[2])['browser_download_url'], 'patches.jar', 'ReVanced Patches')
download(((res_json['tools'])[3])['browser_download_url'], 'integrations.apk', 'ReVanced Integrations')
download(((res_json['tools'])[5])['browser_download_url'], 'cli.jar', 'ReVanced CLI')

if achooser(choosee, "1"): download("https://d.apkpure.com/b/APK/com.google.android.youtube?version=latest", "YouTube.apk", "youtube") ; inputapk = "YouTube.apk" ; patches = patches + ' -i settings'
elif achooser(choosee, "2"): download("https://d.apkpure.com/b/APK/com.google.android.apps.youtube.music?version=latest", "YouTubeMusic.apk", "YouTubeMusic") ; inputapk = "YouTubeMusic.apk" ; patches = patches + ' -i settings'
elif achooser(choosee, "3"): download("https://d.apkpure.com/b/APK/com.zhiliaoapp.musically?version=latest", "TikTok.apk", "TikTok") ; inputapk = "TikTok.apk"
Expand Down

0 comments on commit 0df1283

Please sign in to comment.