1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

@cosmetic Simplify ical ProductId code since adding properties (#2164)

This commit is contained in:
James White 2017-10-11 20:11:16 +01:00 committed by Leonardo Galli
parent 1d8eec42ef
commit 805927205c

View File

@ -82,9 +82,10 @@ private Response GetCalendarFeed()
}
var movies = _movieService.GetMoviesBetweenDates(start, end, unmonitored);
var calendar = new Ical.Net.Calendar();
calendar.ProductId = "-//radarr.video//Radarr//EN";
var calendar = new Ical.Net.Calendar
{
ProductId = "-//radarr.video//Radarr//EN"
};
var calendarName = "Radarr Movies Calendar";
calendar.AddProperty(new CalendarProperty("NAME", calendarName));