update to the process_uploads upload.py and new database table called data

This commit is contained in:
SumGuyV5 committed 2026-09-16 01:11:38 +00:00
1 parent afe6490d20
commit 2773200a94
17 files changed
+245 -70

No files matched your search

+12 -2
View File
@@ -1,8 +1,11 @@
#!/usr/bin/env python3
import package.youtube.shorts as yt_shorts
from datetime import datetime
import package.build_shorts as yt_shorts
import package.transcribe_video as transcribe_video
import package.twitch.chat_vod as chat_vod
from package.config import DB as DB
from package.config import TZ as TZ
def build_chat_video():
chats = DB.get_unuploaded_chats()
@@ -81,6 +84,7 @@ def build_shorts():
shorts = DB.get_unuploaded_shorts()
top_txt = "TeamPGP Live on Twitch...\n Every Friday and Sunday @7:30 ET.\n twitch.tv/teampgp"
count = 1
for short in shorts:
(
@@ -107,8 +111,14 @@ def build_shorts():
print("====================================================")
print(f"🚀 Processing: Clip to Youtube Short {title}")
print("====================================================")
print(f"{count}/{len(shorts)}")
yt_shorts.fit_to_9_16_letterbox(target_dir, top_txt, f"Clipped By: {creator_name}.")
created_at = datetime.strptime(created_at, "%Y-%m-%d %H:%M:%S%z")
created_at = created_at.astimezone(TZ)
#ToDo
yt_shorts.fit_to_9_16_letterbox(target_dir, top_txt, f"Clipped By: {creator_name},\n on {created_at.strftime("%Y-%m-%d %H:%M:%S %Z")}", True, True)
count += 1
print("====================================================")
print(f"✅ Processing: Clip to Youtube Short Done.")