mirror of
https://github.com/Readarr/Readarr
synced 2025-12-19 14:56:04 +01:00
Blow up if series stats is null
This commit is contained in:
parent
13fab38702
commit
c3b8b52644
1 changed files with 1 additions and 2 deletions
|
|
@ -125,8 +125,7 @@ private void MapCoversToLocal(params SeriesResource[] series)
|
||||||
|
|
||||||
private void LinkSeriesStatistics(SeriesResource resource, List<SeriesStatistics> seriesStatistics)
|
private void LinkSeriesStatistics(SeriesResource resource, List<SeriesStatistics> seriesStatistics)
|
||||||
{
|
{
|
||||||
var stats = seriesStatistics.SingleOrDefault(ss => ss.SeriesId == resource.Id);
|
var stats = seriesStatistics.Single(ss => ss.SeriesId == resource.Id);
|
||||||
if (stats == null) return;
|
|
||||||
|
|
||||||
resource.EpisodeCount = stats.EpisodeCount;
|
resource.EpisodeCount = stats.EpisodeCount;
|
||||||
resource.EpisodeFileCount = stats.EpisodeFileCount;
|
resource.EpisodeFileCount = stats.EpisodeFileCount;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue