diff --git a/src/Lidarr.Api.V1/Calendar/CalendarFeedModule.cs b/src/Lidarr.Api.V1/Calendar/CalendarFeedModule.cs index d186044f2..f9fb21a2d 100644 --- a/src/Lidarr.Api.V1/Calendar/CalendarFeedModule.cs +++ b/src/Lidarr.Api.V1/Calendar/CalendarFeedModule.cs @@ -3,16 +3,14 @@ using System.Collections.Generic; using System.Linq; using Ical.Net; 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; using NzbDrone.Core.Tags; using NzbDrone.Core.Music; using Lidarr.Http.Extensions; +using Ical.Net.CalendarComponents; namespace Lidarr.Api.V1.Calendar { @@ -82,11 +80,11 @@ namespace Lidarr.Api.V1.Calendar continue; } - var occurrence = calendar.Create(); - occurrence.Uid = "NzbDrone_album_" + album.Id; + var occurrence = calendar.Create(); + occurrence.Uid = "Lidarr_album_" + album.Id; //occurrence.Status = album.HasFile ? EventStatus.Confirmed : EventStatus.Tentative; - //occurrence.Description = album.Overview; - //occurrence.Categories = new List() { album.Series.Network }; + occurrence.Description = album.Overview; + occurrence.Categories = album.Genres; occurrence.Start = new CalDateTime(album.ReleaseDate.Value.ToLocalTime()) { HasTime = false }; diff --git a/src/Lidarr.Api.V1/Lidarr.Api.V1.csproj b/src/Lidarr.Api.V1/Lidarr.Api.V1.csproj index 7dbfb26ff..6cd9d916b 100644 --- a/src/Lidarr.Api.V1/Lidarr.Api.V1.csproj +++ b/src/Lidarr.Api.V1/Lidarr.Api.V1.csproj @@ -12,7 +12,7 @@ - +