mirror of
https://github.com/Radarr/Radarr
synced 2025-01-18 21:52:10 +00:00
SeasonCount excludes specials
This commit is contained in:
parent
1c77712bf7
commit
34b5a833f5
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using NzbDrone.Api.REST;
|
using NzbDrone.Api.REST;
|
||||||
using NzbDrone.Core.MediaCover;
|
using NzbDrone.Core.MediaCover;
|
||||||
using NzbDrone.Core.Tv;
|
using NzbDrone.Core.Tv;
|
||||||
|
@ -19,9 +20,9 @@ public Int32 SeasonCount
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (Seasons != null) return Seasons.Count;
|
if (Seasons == null) return 0;
|
||||||
|
|
||||||
return 0;
|
return Seasons.Where(s => s.SeasonNumber > 0).Count();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue