Created new get_youtube_server that loads and youtube Credentials
This commit is contained in:
1 parent
c4f5018833
commit
ee93c06f7d
3 files changed
+21
-20
No files matched your search
@@ -55,13 +55,9 @@ def upload_video(file_path: str, title: str, category: CategoryId, description:
|
||||
print(f"❌ Error: File not found: {file_path}")
|
||||
return None
|
||||
|
||||
# Load credentials
|
||||
if not config.CREDENTIALS:
|
||||
print("❌ Error: YouTube API credentials not configured.")
|
||||
return None
|
||||
|
||||
|
||||
# Create YouTube API client
|
||||
youtube = build('youtube', 'v3', credentials=config.CREDENTIALS)
|
||||
youtube = config.get_youtube_service()
|
||||
|
||||
# Configure the status object dynamically
|
||||
status_body = {
|
||||
|
||||
Reference in new issue
Block a user