Beispiel #1
0
        public void DownloadEpisode(XEpisode episode)
        {
            var episodesFolder = this.GetAlbumFolderPath(episode.AlbumID);

            if (Directory.Exists(episodesFolder) == false)
            {
                Directory.CreateDirectory(episodesFolder);
            }

            var episodeFilePath = Path.Combine(episodesFolder, episode.ID + ".html");

            //if (File.Exists(episodeFilePath) == true)
            //    File.Delete(episodeFilePath);

            BaseTarget.SaveAndReturn(episode.URL, episodeFilePath, this.Encoding);
            episode.IsWebPageDownloaded = true;

            CheckEpisode(episode);
        }
Beispiel #2
0
 public BaseReader(BaseTarget target)
 {
     this.Target = target;
 }