mirror of
https://github.com/lidarr/Lidarr
synced 2025-03-13 07:23:14 +00:00
New: Upgrade Ical.Net to 4.1.11
This commit is contained in:
parent
5b42c699ea
commit
c0a0d31fa7
2 changed files with 6 additions and 8 deletions
|
@ -3,16 +3,14 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Ical.Net;
|
using Ical.Net;
|
||||||
using Ical.Net.DataTypes;
|
using Ical.Net.DataTypes;
|
||||||
using Ical.Net.General;
|
|
||||||
using Ical.Net.Interfaces.Serialization;
|
|
||||||
using Ical.Net.Serialization;
|
using Ical.Net.Serialization;
|
||||||
using Ical.Net.Serialization.iCalendar.Factory;
|
|
||||||
using Nancy;
|
using Nancy;
|
||||||
using Nancy.Responses;
|
using Nancy.Responses;
|
||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
using NzbDrone.Core.Tags;
|
using NzbDrone.Core.Tags;
|
||||||
using NzbDrone.Core.Music;
|
using NzbDrone.Core.Music;
|
||||||
using Lidarr.Http.Extensions;
|
using Lidarr.Http.Extensions;
|
||||||
|
using Ical.Net.CalendarComponents;
|
||||||
|
|
||||||
namespace Lidarr.Api.V1.Calendar
|
namespace Lidarr.Api.V1.Calendar
|
||||||
{
|
{
|
||||||
|
@ -82,11 +80,11 @@ namespace Lidarr.Api.V1.Calendar
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var occurrence = calendar.Create<Event>();
|
var occurrence = calendar.Create<CalendarEvent>();
|
||||||
occurrence.Uid = "NzbDrone_album_" + album.Id;
|
occurrence.Uid = "Lidarr_album_" + album.Id;
|
||||||
//occurrence.Status = album.HasFile ? EventStatus.Confirmed : EventStatus.Tentative;
|
//occurrence.Status = album.HasFile ? EventStatus.Confirmed : EventStatus.Tentative;
|
||||||
//occurrence.Description = album.Overview;
|
occurrence.Description = album.Overview;
|
||||||
//occurrence.Categories = new List<string>() { album.Series.Network };
|
occurrence.Categories = album.Genres;
|
||||||
|
|
||||||
occurrence.Start = new CalDateTime(album.ReleaseDate.Value.ToLocalTime()) { HasTime = false };
|
occurrence.Start = new CalDateTime(album.ReleaseDate.Value.ToLocalTime()) { HasTime = false };
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="FluentValidation" Version="8.4.0" />
|
<PackageReference Include="FluentValidation" Version="8.4.0" />
|
||||||
<PackageReference Include="Ical.Net" Version="2.2.32" />
|
<PackageReference Include="Ical.Net" Version="4.1.11" />
|
||||||
<PackageReference Include="Nancy" Version="2.0.0" />
|
<PackageReference Include="Nancy" Version="2.0.0" />
|
||||||
<PackageReference Include="Nancy.Authentication.Basic" Version="2.0.0" />
|
<PackageReference Include="Nancy.Authentication.Basic" Version="2.0.0" />
|
||||||
<PackageReference Include="Nancy.Authentication.Forms" Version="2.0.0" />
|
<PackageReference Include="Nancy.Authentication.Forms" Version="2.0.0" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue