From 9fb29f42c442d70c3a743a33492f29b215adf42a Mon Sep 17 00:00:00 2001 From: installemployee <104406456+installemployee@users.noreply.github.com> Date: Thu, 28 Apr 2022 20:27:23 -0400 Subject: [PATCH] Fixed: iCal status values --- src/NzbDrone.Api/Calendar/CalendarFeedModule.cs | 6 ++---- src/NzbDrone.Api/Sonarr.Api.csproj | 2 +- src/Sonarr.Api.V3/Calendar/CalendarFeedModule.cs | 6 ++---- src/Sonarr.Api.V3/Sonarr.Api.V3.csproj | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs b/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs index efce290af..386471fc6 100644 --- a/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs +++ b/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs @@ -3,11 +3,9 @@ using System; using System.Collections.Generic; using System.Linq; using Ical.Net; +using Ical.Net.CalendarComponents; using Ical.Net.DataTypes; -using Ical.Net.General; -using Ical.Net.Interfaces.Serialization; using Ical.Net.Serialization; -using Ical.Net.Serialization.iCalendar.Factory; using NzbDrone.Core.Tv; using Nancy.Responses; using NzbDrone.Core.Tags; @@ -116,7 +114,7 @@ namespace NzbDrone.Api.Calendar continue; } - var occurrence = calendar.Create(); + var occurrence = calendar.Create(); occurrence.Uid = "NzbDrone_episode_" + episode.Id; occurrence.Status = episode.HasFile ? EventStatus.Confirmed : EventStatus.Tentative; occurrence.Description = episode.Overview; diff --git a/src/NzbDrone.Api/Sonarr.Api.csproj b/src/NzbDrone.Api/Sonarr.Api.csproj index fd57beda2..34a8fe282 100644 --- a/src/NzbDrone.Api/Sonarr.Api.csproj +++ b/src/NzbDrone.Api/Sonarr.Api.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/Sonarr.Api.V3/Calendar/CalendarFeedModule.cs b/src/Sonarr.Api.V3/Calendar/CalendarFeedModule.cs index 8a2ae1016..dc764a594 100644 --- a/src/Sonarr.Api.V3/Calendar/CalendarFeedModule.cs +++ b/src/Sonarr.Api.V3/Calendar/CalendarFeedModule.cs @@ -2,11 +2,9 @@ using System; using System.Collections.Generic; using System.Linq; using Ical.Net; +using Ical.Net.CalendarComponents; using Ical.Net.DataTypes; -using Ical.Net.General; -using Ical.Net.Interfaces.Serialization; using Ical.Net.Serialization; -using Ical.Net.Serialization.iCalendar.Factory; using Nancy; using Nancy.Responses; using NzbDrone.Common.Extensions; @@ -86,7 +84,7 @@ namespace Sonarr.Api.V3.Calendar continue; } - var occurrence = calendar.Create(); + var occurrence = calendar.Create(); occurrence.Uid = "NzbDrone_episode_" + episode.Id; occurrence.Status = episode.HasFile ? EventStatus.Confirmed : EventStatus.Tentative; occurrence.Description = episode.Overview; diff --git a/src/Sonarr.Api.V3/Sonarr.Api.V3.csproj b/src/Sonarr.Api.V3/Sonarr.Api.V3.csproj index 159a64246..2a43ab9e8 100644 --- a/src/Sonarr.Api.V3/Sonarr.Api.V3.csproj +++ b/src/Sonarr.Api.V3/Sonarr.Api.V3.csproj @@ -5,7 +5,7 @@ - +