#!/usr/bin/env python3
"""
Test script to demonstrate the fixed CC text functionality
Replace 'TEST_VIDEO_ID' with an actual YouTube video ID that has captions
"""

from enhanced_yt_transcript import download_transcript

# Example video ID - replace with a real video ID that has captions
video_id = "TEST_VIDEO_ID"  # Replace this with actual video ID

print("🎬 Testing YouTube transcript downloader...")
print(f"📹 Video ID: {video_id}")
print("📝 This will create cc1.txt, cc2.txt, cc3.txt, etc.")
print()

# Test the function
success = download_transcript(video_id, output_dir="test_captions")

if success:
    print("\n✅ Test completed successfully!")
    print("Check the 'test_captions' directory for cc#.txt files")
else:
    print("\n❌ Test failed - make sure to use a valid video ID with captions")