예제 #1
0
        public override void LoadLink(string episodeLink, int episode, int normalEpisode, TempThread tempThred, object extraData, bool isDub)
        {
            var ep = provider.GetDubbedAnimeEpisode(episodeLink, episode);

            if (ep.HasValue)
            {
                provider.AddMirrors(ep.Value, normalEpisode);
            }
        }
 public override void LoadLink(object metadata, int episode, int season, int normalEpisode, bool isMovie, TempThread tempThred)
 {
     if (DubbedAnimeBaseProvider.hasSearchedMovies && DubbedAnimeBaseProvider.movies.Count > 0)
     {
         foreach (var mov in DubbedAnimeBaseProvider.movies)
         {
             var baseName = ToDown(mov.name);
             if (baseName == ToDown(ActiveMovie.title.name) || baseName == ToDown(ActiveMovie.title.ogName))
             {
                 var ep = provider.GetDubbedAnimeEpisode(mov.slug);
                 if (ep.HasValue)
                 {
                     provider.AddMirrors(ep.Value, normalEpisode);
                     return;
                 }
             }
         }
     }
 }