예제 #1
0
        public string GetTitle()
        {
            LazyLoadHtmlSource();

            var titleExtractor = new YouTubeSourceAnalyzer(_youtubeSource);

            return titleExtractor.ExtractTitle();
        }
예제 #2
0
        public void DownloadAsync(string destinationFilepath)
        {
            LazyLoadHtmlSource();

            var linkExtractor = new YouTubeSourceAnalyzer(_youtubeSource);

            string videoLink = linkExtractor.ExtractDirectDownloadLink();
            _internalDownloader.DownloadFileAsync(new Uri(videoLink), destinationFilepath);
        }