feat: optimize code and bump version to 1.2.4

This commit is contained in:
harry
2025-05-08 15:44:07 +08:00
parent 6a19e2bb29
commit c7f7fa12b4
8 changed files with 246 additions and 340 deletions

View File

@@ -45,7 +45,9 @@ app = _cfg.get("app", {})
whisper = _cfg.get("whisper", {})
proxy = _cfg.get("proxy", {})
azure = _cfg.get("azure", {})
ui = _cfg.get("ui", {})
ui = _cfg.get("ui", {
"hide_log": False,
})
hostname = socket.gethostname()
@@ -57,7 +59,7 @@ project_description = _cfg.get(
"project_description",
"<a href='https://github.com/harry0703/MoneyPrinterTurbo'>https://github.com/harry0703/MoneyPrinterTurbo</a>",
)
project_version = _cfg.get("project_version", "1.2.3")
project_version = _cfg.get("project_version", "1.2.4")
reload_debug = False
imagemagick_path = app.get("imagemagick_path", "")

View File

@@ -138,7 +138,6 @@ def combine_videos(
)
shuffle_side = random.choice(["left", "right", "top", "bottom"])
logger.info(f"Using transition mode: {video_transition_mode}")
if video_transition_mode.value == VideoTransitionMode.none.value:
clip = clip
elif video_transition_mode.value == VideoTransitionMode.fade_in.value: