Update marudor to bahn.expert

This commit is contained in:
Laura Hausmann 2022-08-21 17:06:25 +02:00
parent 7993ae8d06
commit e094c41895
Signed by: zotan
GPG key ID: D044E84C5BE01605
3 changed files with 5 additions and 5 deletions

View file

@ -57,11 +57,11 @@ public class GenIcs : PageModel {
e.Description = leg.Comment e.Description = leg.Comment
+ "\n" + "\n"
+ "\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}"; + $"https://bahn.expert/details/{leg.TrainType}{leg.TrainNr}/{DateTime.Parse(leg.DepTime).ToUniversalTime().Subtract(new DateTime(1970, 1, 1)).TotalSeconds}000/?station={leg.DepStationId}";
else else
e.Description = 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}"; $"https://bahn.expert/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); calendar.Events.Add(e);
} }
@ -93,4 +93,4 @@ public class GenIcs : PageModel {
[Name("Aufgabenträger")] public string Verkehrsverbund { get; set; } [Name("Aufgabenträger")] public string Verkehrsverbund { get; set; }
} }
} }

View file

@ -68,7 +68,7 @@
} }
</td> </td>
<td> <td>
<a class="btn btn-sm btn-primary" href="https://marudor.de/details/@leg.TrainType @leg.TrainNr/@(deptime.ToUniversalTime().Subtract(new DateTime(1970, 1, 1)).TotalSeconds)000/?station=@leg.DepStationId" target="_blank">Marudor</a> <a class="btn btn-sm btn-primary" href="https://bahn.expert/details/@leg.TrainType @leg.TrainNr/@(deptime.ToUniversalTime().Subtract(new DateTime(1970, 1, 1)).TotalSeconds)000/?station=@leg.DepStationId" target="_blank">BahnExpert</a>
<a class="btn btn-sm btn-warning" href="https://travelynx.de/s/@leg.DepStationId?train=@leg.TrainType @leg.TrainNr" target="_blank">Travelynx</a> <a class="btn btn-sm btn-warning" href="https://travelynx.de/s/@leg.DepStationId?train=@leg.TrainType @leg.TrainNr" target="_blank">Travelynx</a>
</td> </td>
</tr> </tr>

View file

@ -97,7 +97,7 @@
} }
</td> </td>
<td> <td>
<a class="btn btn-sm btn-primary" href="https://marudor.de/details/@leg.TrainType @leg.TrainNr/@(deptime.ToUniversalTime().ToString("O"))/?station=@leg.DepStationId" target="_blank">Marudor</a> <a class="btn btn-sm btn-primary" href="https://bahn.expert/details/@leg.TrainType @leg.TrainNr/@(deptime.ToUniversalTime().ToString("O"))/?station=@leg.DepStationId" target="_blank">BahnExpert</a>
<a class="btn btn-sm btn-warning" href="https://travelynx.de/s/@leg.DepStationId?train=@leg.TrainType @leg.TrainNr" target="_blank">Travelynx</a> <a class="btn btn-sm btn-warning" href="https://travelynx.de/s/@leg.DepStationId?train=@leg.TrainType @leg.TrainNr" target="_blank">Travelynx</a>
</td> </td>
} }