database , chat vod and shorts update error messages
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user