database , chat vod and shorts update error messages

This commit is contained in:
2026-07-31 16:56:40 +00:00
parent 736fb47e7a
commit d6503b7d92
5 changed files with 22 additions and 8 deletions
+5 -1
View File
@@ -2,7 +2,7 @@
import os
import linux
def combine_twitch_vod_and_chat(vod_path: str, layout: str = "side-by-side") -> bool:
def combine_twitch_vod_and_chat(vod_path: str, layout: str = "side-by-side", force: bool = False) -> bool:
"""
Renders Twitch chat JSON to video and combines it with the source VOD.
Provides real-time terminal feedback for all processing steps.
@@ -14,6 +14,10 @@ def combine_twitch_vod_and_chat(vod_path: str, layout: str = "side-by-side") ->
mask_path = video_path.replace(".mp4", "_temp_chat_mask.mp4")
# Step 1: Pre-flight checks
if os.path.exists(video_chat) and force is False:
print(f"❌ Error: Chat video allready exists: {video_chat}")
return False
if not os.path.exists(video_path):
print(f"❌ Error: Source video not found: {video_path}")
return False