Ejemplo n.º 1
0
 public SourceFile(string filename, bool lookup)
 {
     _file = new FileInfo(filename);
     _lookup = lookup;
     _seriesSearch = SiteReader.ParseShowName(_file.Name);
     _s00e00 = SiteReader.ParseSeasonEpisode(_file.Name);
     _seasonNumber = SiteReader.ParseSeasonNumber(_s00e00);
     _episodeNumber = SiteReader.ParseEpisodeNumber(_s00e00);
     _series = null;
     _episode = null;
     LoadSeries();
     if (_series != null)
         LoadEpisode();
 }
Ejemplo n.º 2
0
        private void LoadEpisode()
        {
            List<TVEpisode> episodes = new List<TVEpisode>();
            episodes = SiteReader.GetEpisodes(_series.ID);

            var eps = episodes.Where(i => i.Season == _seasonNumber && i.Episode == _episodeNumber);
            if (eps.Count() > 0)
                _episode = eps.First();
        }