/// <summary> /// Prepare a download session for the given video format information /// </summary> /// <param name="format">The video format of <seealso cref="YoutubeVideoInfo"/></param> /// <returns></returns> public VideoDownloadSession PrepareVideoDownload(YoutubeVideoFormat format) { if (format == null) { throw new ArgumentNullException(nameof(format)); } return(new VideoDownloadSession(this, format)); }
public VideoDownloadSession(YoutubeDL tool, YoutubeVideoFormat format) { this.DisableFixup = false; this._tool = tool; this.state = 0; this.myformat = format; this.proc = new Process(); this.cancelSource = new CancellationTokenSource(); }