/// <summary> /// Do the Download /// </summary> /// <returns> /// Return if Downloaded or not /// </returns> protected override bool DoDownload() { // Set the download Path var imageDownloadURL = ImageLinkURL.Replace("/show/", "/images/"); var filePath = ImageLinkURL.Substring(ImageLinkURL.IndexOf("-", StringComparison.Ordinal) + 1); // Finally Download the Image return(this.DownloadImageAsync(imageDownloadURL, filePath, true)); }
/// <summary> /// Do the Download /// </summary> /// <returns> /// Returns if the Image was downloaded /// </returns> protected override bool DoDownload() { // Set the download Path var imageDownloadURL = ImageLinkURL.Replace("?v=", "images/").Replace("_", "/"); // Set Image Name instead of using random name var filePath = this.GetImageName(this.PostTitle, imageDownloadURL, this.ImageNumber); // Finally Download the Image return(this.DownloadImageAsync(imageDownloadURL, filePath)); }