mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Added SeriesStatistics
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user