SeasonCount excludes specials

pull/3113/head
Mark McDowall 11 years ago
parent 1c77712bf7
commit 34b5a833f5

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Api.REST;
using NzbDrone.Core.MediaCover;
using NzbDrone.Core.Tv;
@ -19,9 +20,9 @@ namespace NzbDrone.Api.Series
{
get
{
if (Seasons != null) return Seasons.Count;
if (Seasons == null) return 0;
return 0;
return Seasons.Where(s => s.SeasonNumber > 0).Count();
}
}

Loading…
Cancel
Save