summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-12-12 18:20:40 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-12-12 18:20:40 +0100
commitfc9562f7901deb04afb548f9a02a314f4e1dc27a (patch)
tree4036740178e7a4462b4a0b2d16898bb9b922a17a /lib/Travelynx.pm
parent5de6dfb4e1712c1afea94a3f1ff813e96f0d40e2 (diff)
Improve "Betriebsstelle nicht bekannt" handling1.28.2
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 4195001..046f947 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -1034,6 +1034,14 @@ sub startup {
my ( $route_data, $journey, $polyline ) = @_;
for my $station ( @{$route} ) {
+ if ( $station->[0]
+ =~ m{^Betriebsstelle nicht bekannt (\d+)$} )
+ {
+ my $eva = $1;
+ if ( $route_data->{$eva} ) {
+ $station->[0] = $route_data->{$eva}{name};
+ }
+ }
$station->[1]
= $route_data->{ $station->[0] };
}