private void InitBuilder(YTDownloaderBuilder builder) { this.ExportAudioDirPath = builder.ExportAudioDirPath; this.ExportVideoDirPath = builder.ExportVideoDirPath; this.ExportOptions = builder.ExportOptions; this.SkipVideosWhichExists = builder.SkipVideosWhichExists; }
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); } }
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); } }