updater.py aktualisiert

This commit is contained in:
Manuel Kamper 2024-01-14 16:55:23 +01:00
parent 6a28e38c29
commit bdf6328a33

View File

@ -29,6 +29,8 @@ def get_last_filename_and_rename(new_filename):
max_file = max(files, key=os.path.getctime)
while not max_file.endswith(".apk"):
time.sleep(30)
files = glob.glob(temp_path + '/*')
max_file = max(files, key=os.path.getctime)
filename_stripped = max_file.replace("_apkcombo.com","")
filename = filename_stripped.split("/")[-1].split("_")[-2]
new_filename2 = max_file.replace(filename, new_filename)