コード例 #1
0
 private void InitBuilder(YTDownloaderBuilder builder)
 {
     this.ExportAudioDirPath    = builder.ExportAudioDirPath;
     this.ExportVideoDirPath    = builder.ExportVideoDirPath;
     this.ExportOptions         = builder.ExportOptions;
     this.SkipVideosWhichExists = builder.SkipVideosWhichExists;
 }
コード例 #2
0
        public YTDownloader(YTDownloaderBuilder builder, IList <LinkInfo> links)
        {
            InitBuilder(builder);

            foreach (var linkInfo in links)
            {
                engines.Add(linkInfo.GUID, new Engine());
                videoDownloaders.Add(linkInfo.GUID, new VideoDownloader());
                linksToProcess.Add(linkInfo);
            }
        }
コード例 #3
0
        public YTDownloader(YTDownloaderBuilder builder, string [] urls)
        {
            InitBuilder(builder);

            foreach (var url in urls)
            {
                var linkInfo = new LinkInfo(url);

                engines.Add(linkInfo.GUID, new Engine());
                videoDownloaders.Add(linkInfo.GUID, new VideoDownloader());
                linksToProcess.Add(linkInfo);
            }
        }