code before moving database code to its own file.

This commit is contained in:
2026-07-17 14:59:58 -04:00
parent 228cf37eba
commit b573ca05aa
4 changed files with 132 additions and 57 deletions
+6 -5
View File
@@ -70,14 +70,15 @@ def upload_clips():
file_path = f"save/clips/{slug}/{slug}.mp4"
title = title
description = f"Game: {game_name}, Cliped By: {clip_by}, on {record_date}"
categoryId = CategoryId.SHORTS
description = f"Game: {game_name}, Cliped By: {clip_by}, on {record_date}, #Shorts"
categoryId = CategoryId.GAMING
privatcyStatus = 'private'
tags = ['#SHORT', '#GAMING', '#TeamPGP', f'#{game_name}', f'#{clip_by}']
tags = ['shorts', 'gaming', 'TeamPGP', f'{game_name}', f'{clip_by}']
if (uploader.upload_video(file_path, title, description, categoryId, privatcyStatus, tags) is True):
output = uploader.upload_video(file_path, title, description, categoryId, privatcyStatus, tags)
if output is True:
print(f"Slug: {slug} | Was successfully uploaded.")
mark_as_uploaded(slug)
else:
print(f"Slug: {slug} | Upload Process failed.")