#!/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")