From bdf6328a339b9e71b7cd74a33318a7051ef76897 Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Sun, 14 Jan 2024 16:55:23 +0100 Subject: [PATCH] updater.py aktualisiert --- updater.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/updater.py b/updater.py index e70bfed..6bff4f8 100644 --- a/updater.py +++ b/updater.py @@ -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)