Update marudor to bahn.expert
This commit is contained in:
parent
7993ae8d06
commit
e094c41895
|
@ -57,11 +57,11 @@ public class GenIcs : PageModel {
|
|||
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}";
|
||||
+ $"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
|
||||
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);
|
||||
}
|
||||
|
@ -93,4 +93,4 @@ public class GenIcs : PageModel {
|
|||
|
||||
[Name("Aufgabenträger")] public string Verkehrsverbund { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
}
|
||||
</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>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
}
|
||||
</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>
|
||||
</td>
|
||||
}
|
||||
|
|
Reference in a new issue