mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-03 05:35:29 +00:00
Fixed: Fetching ICS calendar with missing series
This commit is contained in:
parent
e70aef9690
commit
024462c52d
1 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,11 @@ namespace Sonarr.Api.V3.Calendar
|
||||||
{
|
{
|
||||||
var series = allSeries.SingleOrDefault(s => s.Id == episode.SeriesId);
|
var series = allSeries.SingleOrDefault(s => s.Id == episode.SeriesId);
|
||||||
|
|
||||||
|
if (series == null)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (premieresOnly && (episode.SeasonNumber == 0 || episode.EpisodeNumber != 1))
|
if (premieresOnly && (episode.SeasonNumber == 0 || episode.EpisodeNumber != 1))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue