mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04: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:
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user