diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-12-11 16:19:24 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-12-11 16:19:24 +0100 |
commit | 11b153dd92382c94e4af30fa777f77b3737cab57 (patch) | |
tree | 0ee84794b91808d974e5637947f5c2007e306c62 /lib/DBInfoscreen/Controller/Stationboard.pm | |
parent | 0cbc7180d96da8ba6b96f8d4cbd0a81241f37d63 (diff) |
handle "Betriebsstelle nicht bekannt" in routes4.14.4
Diffstat (limited to 'lib/DBInfoscreen/Controller/Stationboard.pm')
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 36f62d7..c02a342 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -748,6 +748,14 @@ sub render_train { @{ $departure->{route_post_diff} } ) { + if ( $elem->{name} + =~ m{^Betriebsstelle nicht bekannt (\d+)$} ) + { + my $eva = $1; + if ( $route_ts->{$eva} ) { + $elem->{name} = $route_ts->{$eva}{name}; + } + } for my $key ( keys %{ $route_ts->{ $elem->{name} } // {} } ) { $elem->{$key} = $route_ts->{ $elem->{name} }{$key}; |