mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
SeriesProvider gets QualityProfile in single call to DB.
SeriesProvider.GetAllSeriesWithEpisodeCount gets seasonCount(with or without specials), total episode count & episodeWithFile count (excluding ignored episodes). Added tests for SeriesWithEpisodeCount.
This commit is contained in:
parent
5a99d374d9
commit
431d850d32
6 changed files with 197 additions and 91 deletions
|
@ -10,32 +10,25 @@ namespace NzbDrone.Core.Repository
|
|||
{
|
||||
public virtual int SeriesId { get; set; }
|
||||
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
|
||||
public string CleanTitle { get; set; }
|
||||
|
||||
|
||||
public string Status { get; set; }
|
||||
|
||||
|
||||
public string Overview { get; set; }
|
||||
|
||||
[DisplayName("Air on")]
|
||||
public DayOfWeek? AirsDayOfWeek { get; set; }
|
||||
|
||||
|
||||
public String AirTimes { get; set; }
|
||||
|
||||
|
||||
public string Language { get; set; }
|
||||
|
||||
public string Path { get; set; }
|
||||
|
||||
public bool Monitored { get; set; }
|
||||
|
||||
|
||||
public virtual int QualityProfileId { get; set; }
|
||||
|
||||
public bool SeasonFolder { get; set; }
|
||||
|
@ -55,5 +48,14 @@ namespace NzbDrone.Core.Repository
|
|||
|
||||
[Ignore]
|
||||
public QualityProfile QualityProfile { get; set; }
|
||||
|
||||
[ResultColumn]
|
||||
public int EpisodeCount { get; set; }
|
||||
|
||||
[ResultColumn]
|
||||
public int EpisodeFileCount { get; set; }
|
||||
|
||||
[ResultColumn]
|
||||
public int SeasonCount { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue