ADBaseLibrary.Follows.CheckFollows C# (CSharp) Method

CheckFollows() public method

public CheckFollows ( List upds ) : List
upds List
return List
        public List<EpisodeWithDownloadSettings> CheckFollows(List<Episode> upds)
        {
            List <EpisodeWithDownloadSettings> downs=new List<EpisodeWithDownloadSettings>();
            foreach (Episode upd in upds)
            {
                List<Follow> fls = ShowFollows.Where(a => a.ShowId == upd.ShowId && a.PluginName == upd.PluginName).ToList();
                foreach(Follow f in fls.ToList())
                {
                    if (!Downloads.Any(a => a.Id == upd.Id && a.PluginName == upd.PluginName && a.Quality == f.Quality && a.Format == f.Format))
                    {
                        EpisodeWithDownloadSettings his=new EpisodeWithDownloadSettings();
                        upd.CopyTo(his);
                        his.Format = f.Format;
                        his.Quality = f.Quality;
                        downs.Add(his);
                    }
                }
            }
            return downs;
        }