Exemple #1
0
        public string GetTitle()
        {
            LazyLoadHtmlSource();

            var titleExtractor = new YouTubeSourceAnalyzer(_youtubeSource);

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

            var linkExtractor = new YouTubeSourceAnalyzer(_youtubeSource);

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