コード例 #1
0
ファイル: YouTubeDownloader.cs プロジェクト: neel/Pion
        public string GetTitle()
        {
            LazyLoadHtmlSource();

            var titleExtractor = new YouTubeSourceAnalyzer(_youtubeSource);

            return titleExtractor.ExtractTitle();
        }
コード例 #2
0
ファイル: YouTubeDownloader.cs プロジェクト: neel/Pion
        public void DownloadAsync(string destinationFilepath)
        {
            LazyLoadHtmlSource();

            var linkExtractor = new YouTubeSourceAnalyzer(_youtubeSource);

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