better feedback in the installer
parent
610b260e0b
commit
2b3ec6ec4b
|
@ -166,12 +166,12 @@ def prepare_music(data):
|
||||||
logging.info(f"ffmpeg version is {ffmpeg_version}")
|
logging.info(f"ffmpeg version is {ffmpeg_version}")
|
||||||
|
|
||||||
logging.info("downloading and cutting the songs")
|
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"):
|
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)
|
fetch_and_cut_song(tape, ffmpeg_version)
|
||||||
else:
|
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")
|
logging.info(f"removing temporary music folder")
|
||||||
rmfulldir('./build/tmp_music/')
|
rmfulldir('./build/tmp_music/')
|
||||||
|
|
2
main.py
2
main.py
|
@ -266,8 +266,10 @@ def create_deploy_frame(container, config):
|
||||||
def does_ffmpeg_exists():
|
def does_ffmpeg_exists():
|
||||||
if Path("./utils/ffmpeg-" + get_ffmpeg_version() + "-full_build/bin/ffmpeg.exe").exists():
|
if Path("./utils/ffmpeg-" + get_ffmpeg_version() + "-full_build/bin/ffmpeg.exe").exists():
|
||||||
deploy_button["state"] = "normal"
|
deploy_button["state"] = "normal"
|
||||||
|
download_tools_button["state"] = "disable"
|
||||||
else:
|
else:
|
||||||
deploy_button["state"] = "disable"
|
deploy_button["state"] = "disable"
|
||||||
|
download_tools_button["state"] = "normal"
|
||||||
|
|
||||||
frame = ttk.LabelFrame(container, text='Install')
|
frame = ttk.LabelFrame(container, text='Install')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue