From 2b3ec6ec4b3705102839206e29210d7fe9b18544 Mon Sep 17 00:00:00 2001 From: Jaka Date: Sun, 14 Nov 2021 21:27:38 +0100 Subject: [PATCH] better feedback in the installer --- deploy.py | 6 +++--- main.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deploy.py b/deploy.py index efc47a4..ce435a0 100644 --- a/deploy.py +++ b/deploy.py @@ -166,12 +166,12 @@ def prepare_music(data): logging.info(f"ffmpeg version is {ffmpeg_version}") logging.info("downloading and cutting the songs") - for tape in data: + for i, tape in enumerate(data): if not os.path.exists(f"./build/music/{tape['identifier']}.ogg"): - logging.info(f"Downloading {tape['name']}") + logging.info(f"{i + 1}/{len(data)} Downloading: {tape['name']}") fetch_and_cut_song(tape, ffmpeg_version) else: - logging.info(f"Skipping {tape['name']}") + logging.info(f"{i + 1}/{len(data)} Already exists: {tape['name']}") logging.info(f"removing temporary music folder") rmfulldir('./build/tmp_music/') diff --git a/main.py b/main.py index 7f9045d..3773387 100644 --- a/main.py +++ b/main.py @@ -266,8 +266,10 @@ def create_deploy_frame(container, config): def does_ffmpeg_exists(): if Path("./utils/ffmpeg-" + get_ffmpeg_version() + "-full_build/bin/ffmpeg.exe").exists(): deploy_button["state"] = "normal" + download_tools_button["state"] = "disable" else: deploy_button["state"] = "disable" + download_tools_button["state"] = "normal" frame = ttk.LabelFrame(container, text='Install')