better feedback in the installer

master
Jaka Perovšek 2021-11-14 21:27:38 +01:00
parent 610b260e0b
commit 2b3ec6ec4b
2 changed files with 5 additions and 3 deletions

View File

@ -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/')

View File

@ -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')