mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Manual join of Series for EpisodesBetweenDates
This commit is contained in:
parent
df38aa2307
commit
a4d69cc5ce
9 changed files with 33 additions and 12 deletions
|
@ -32,6 +32,7 @@ namespace NzbDrone.Core.Tv
|
|||
List<Series> GetAllSeries();
|
||||
void UpdateSeries(Series series);
|
||||
bool SeriesPathExists(string folder);
|
||||
List<Series> GetSeriesInList(IEnumerable<int> seriesIds);
|
||||
}
|
||||
|
||||
public class SeriesService : ISeriesService, IHandleAsync<SeriesAddedEvent>
|
||||
|
@ -63,11 +64,10 @@ namespace NzbDrone.Core.Tv
|
|||
return _seriesRepository.Get(id).Monitored;
|
||||
}
|
||||
|
||||
|
||||
public Series UpdateSeriesInfo(int seriesId)
|
||||
{
|
||||
var series = _seriesRepository.Get(seriesId);
|
||||
var seriesInfo = _seriesInfoProxy.GetSeriesInfo(series.TvDbId);
|
||||
var seriesInfo = _seriesInfoProxy.GetSeriesInfo(series.TvdbId);
|
||||
|
||||
series.Title = seriesInfo.Title;
|
||||
series.AirTime = seriesInfo.AirTime;
|
||||
|
@ -179,6 +179,11 @@ namespace NzbDrone.Core.Tv
|
|||
return _seriesRepository.SeriesPathExists(folder);
|
||||
}
|
||||
|
||||
public List<Series> GetSeriesInList(IEnumerable<int> seriesIds)
|
||||
{
|
||||
return _seriesRepository.SeriesIsInList(seriesIds);
|
||||
}
|
||||
|
||||
public void HandleAsync(SeriesAddedEvent message)
|
||||
{
|
||||
UpdateSeriesInfo(message.Series.Id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue