import YoutubeUploader from './YoutubeUploader' ; const main = async ( ) => { const youtubeUploader = new YoutubeUploader ( ) ; await youtubeUploader . promptLoginAndGetCookies ( ) ; if ( await youtubeUploader . checkCookiesValidity ( ) ) { await youtubeUploader . uploadVideo ( { videoPath : 'C:/Users/gladiatortoise/Desktop/testVideo.mp4' , title : '📡 Automatically Uploaded Video 📡' , description : 'This is a placeholder description.' , thumbnailPath : 'C:/Users/gladiatortoise/Desktop/TestThumbnail.jpg' , visibility : 'unlisted' , monetization : false , } ) ; } await youtubeUploader . saveCookiesToDisk ( process . cwd ( ) + '/cookies_saved.json' ) ; await youtubeUploader . loadCookiesFromDisk ( process . cwd ( ) + '/cookies_saved.json' ) ; } ; main ( ) . catch ( console . error ) ;