mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-08 06:47:56 +02:00
Fixed: Fetching ICS calendar with missing series
This commit is contained in:
parent
e70aef9690
commit
024462c52d
@ -54,6 +54,11 @@ public IActionResult GetCalendarFeed(int pastDays = 7, int futureDays = 28, stri
|
||||
{
|
||||
var series = allSeries.SingleOrDefault(s => s.Id == episode.SeriesId);
|
||||
|
||||
if (series == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (premieresOnly && (episode.SeasonNumber == 0 || episode.EpisodeNumber != 1))
|
||||
{
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user