mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Added SeriesStatistics
This commit is contained in:
parent
979efb8354
commit
f86cb87ced
8 changed files with 60 additions and 4 deletions
|
@ -33,6 +33,7 @@ namespace NzbDrone.Core.Tv
|
|||
void UpdateSeries(Series series);
|
||||
bool SeriesPathExists(string folder);
|
||||
List<Series> GetSeriesInList(IEnumerable<int> seriesIds);
|
||||
List<SeriesStatistics> SeriesStatistics();
|
||||
}
|
||||
|
||||
public class SeriesService : ISeriesService, IHandleAsync<SeriesAddedEvent>
|
||||
|
@ -58,7 +59,6 @@ namespace NzbDrone.Core.Tv
|
|||
_logger = logger;
|
||||
}
|
||||
|
||||
|
||||
public bool IsMonitored(int id)
|
||||
{
|
||||
return _seriesRepository.Get(id).Monitored;
|
||||
|
@ -179,6 +179,11 @@ namespace NzbDrone.Core.Tv
|
|||
return _seriesRepository.Get(seriesIds).ToList();
|
||||
}
|
||||
|
||||
public List<SeriesStatistics> SeriesStatistics()
|
||||
{
|
||||
return _seriesRepository.SeriesStatistics();
|
||||
}
|
||||
|
||||
public void HandleAsync(SeriesAddedEvent message)
|
||||
{
|
||||
UpdateSeriesInfo(message.Series.Id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue