add marudor url to .ics

This commit is contained in:
Laura Hausmann 2020-10-19 02:15:14 +02:00
parent 7a9d63b1a4
commit 9a1bed8400
Signed by: zotan
GPG Key ID: 5EC1D38FFC321311
1 changed files with 8 additions and 1 deletions

View File

@ -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);
}