- DecodeTranscriptNode to parse transcript text - YoutubeUploadNode to upload videos to YouTube - Audio metadata and file list nodes - Image stack blending and stripping alpha channel - Sampler dataset creation node - Utils for deep copying tensors and arrays Also includes: - Testing for new utils module - Git nodes marked with base class - Renamed nodes.py to avoid conflicts - Import refactoring to handle naming Specifics: - descript.py: New transcript parsing node - youtube_nodes.py: New YouTube upload node - audio.py: New audio metadata and file list nodes - utils.py: Deep copy utility functions - image.py: New image stack blending and alpha stripping - tests/test_utils.py: Tests for new utils - git.py: Marked git nodes with base class - __init__.py: Refactored imports and mappings - requirements.txt: Added YouTube dependencies - functional.py: Minor tweaks - modules/youtube.py: Helper for upload node - video.py: Minor cleanup - tests/test_youtube_nodes.py: Test for YouTube upload
18 lines
489 B
Python
18 lines
489 B
Python
import os
|
|
|
|
os.environ["UNIT_TEST"] = "True"
|
|
from custom_nodes.EternalKernelLiteGraphNodes.youtube_nodes import YoutubeUploadNode
|
|
|
|
|
|
def test_upload():
|
|
node = YoutubeUploadNode()
|
|
output = node.upload_video(
|
|
file_path=os.path.join("tests", "example.mp4"),
|
|
category=22,
|
|
title="Test Video",
|
|
description="This is a test video for the Youtube Upload Node",
|
|
keywords="test, youtube, node",
|
|
privacy_status="unlisted"
|
|
)
|
|
print (output)
|