Ejemplo n.º 1
0
        private Episode CreateEpisode(string episodeFile)
        {
            Episode       episode       = new Episode();
            EpisodeNumber episodeNumber = TvShowHelper.FindEpisodeNumberFromFile(_fileSystemService, episodeFile);

            episode.Path          = episodeFile;
            episode.SeasonNumber  = episodeNumber.SeasonNumber;
            episode.EpisodeNumber = episodeNumber.EpisodeSeasonNumber;
            return(episode);
        }
Ejemplo n.º 2
0
        private static Season CreateSeason(string tvShowPath, string seasonFolder)
        {
            Season season = new Season();

            season.Path         = seasonFolder;
            season.SeasonNumber = TvShowHelper.FindSeasonNumberFromFolder(seasonFolder);
            season.PosterUrl    = TvShowHelper.GetSeasonImageFileName(tvShowPath, season.SeasonNumber, "poster");
            season.BannerUrl    = TvShowHelper.GetSeasonImageFileName(tvShowPath, season.SeasonNumber, "banner");
            return(season);
        }