Exemplo n.º 1
0
        public Option <EpisodeGroupMapping> GetEpisodeGroupMapping(int tvDbEpisodeIndex, int tvDbSeasonIndex)
        {
            var mapping = EpisodeGroupMappings.FirstOrDefault(m =>
                                                              m.TvDbSeasonIndex == tvDbSeasonIndex &&
                                                              m.CanMapTvDbEpisode(tvDbEpisodeIndex));

            return(mapping);
        }
Exemplo n.º 2
0
        public Option <EpisodeGroupMapping> GetEpisodeGroupMapping(IAniDbEpisodeNumber aniDbEpisodeNumber)
        {
            var mapping = EpisodeGroupMappings.FirstOrDefault(m =>
                                                              m.AniDbSeasonIndex == aniDbEpisodeNumber.SeasonNumber &&
                                                              m.CanMapAniDbEpisode(aniDbEpisodeNumber.Number));

            return(mapping);
        }