1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-26 17:47:08 +00:00

Needed to reverse the tuple order for Episode count.

This commit is contained in:
Mark McDowall 2011-06-04 12:02:02 -07:00
parent 383dfe302f
commit b68784060b

View file

@ -194,7 +194,7 @@ public virtual Tuple<int, int> GetEpisodeFilesCount(int seriesId)
var episodeTotal = allEpisodes.Where(e => !e.Ignored && e.AirDate <= DateTime.Today && e.AirDate.Year > 1900).ToList();
var avilableEpisodes = episodeTotal.Where(e => e.EpisodeFileId > 0);
return new Tuple<int, int>(episodeTotal.Count, avilableEpisodes.Count());
return new Tuple<int, int>(avilableEpisodes.Count(), episodeTotal.Count);
}
private List<string> GetMediaFileList(string path)