From b68784060b2eac188fdc55960355023a1e8d6487 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 4 Jun 2011 12:02:02 -0700 Subject: [PATCH] Needed to reverse the tuple order for Episode count. --- NzbDrone.Core/Providers/MediaFileProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NzbDrone.Core/Providers/MediaFileProvider.cs b/NzbDrone.Core/Providers/MediaFileProvider.cs index 250e2efc1..9b6237df4 100644 --- a/NzbDrone.Core/Providers/MediaFileProvider.cs +++ b/NzbDrone.Core/Providers/MediaFileProvider.cs @@ -194,7 +194,7 @@ namespace NzbDrone.Core.Providers 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(episodeTotal.Count, avilableEpisodes.Count()); + return new Tuple(avilableEpisodes.Count(), episodeTotal.Count); } private List GetMediaFileList(string path)