code before moving database code to its own file.
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user