diff --git a/bahnplan.web/Pages/GenIcs.cshtml.cs b/bahnplan.web/Pages/GenIcs.cshtml.cs index ecb075c..73b2cdb 100644 --- a/bahnplan.web/Pages/GenIcs.cshtml.cs +++ b/bahnplan.web/Pages/GenIcs.cshtml.cs @@ -61,7 +61,14 @@ namespace bahnplan.web.Pages { }; if (!string.IsNullOrWhiteSpace(leg.Comment)) - e.Description = leg.Comment; + e.Description = + leg.Comment + + "\n" + + "\n" + + $"https://marudor.de/details/{leg.TrainType}{leg.TrainNr}/{DateTime.Parse(leg.DepTime).ToUniversalTime().Subtract(new DateTime(1970, 1, 1)).TotalSeconds}000/?station={leg.DepStationId}"; + + else + e.Description = $"https://marudor.de/details/{leg.TrainType}{leg.TrainNr}/{DateTime.Parse(leg.DepTime).ToUniversalTime().Subtract(new DateTime(1970, 1, 1)).TotalSeconds}000/?station={leg.DepStationId}"; calendar.Events.Add(e); }