diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-12-12 19:57:14 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-12-12 19:57:14 +0100 |
commit | e91495775ca2d30e1b9c52307e1b219699d353dd (patch) | |
tree | 09d384e182bcae2241bdeb670fe894783361e5bf /lib | |
parent | fc9562f7901deb04afb548f9a02a314f4e1dc27a (diff) |
Journeys: Handle "Betriebsstelle nicht bekannt"
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx/Model/Journeys.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm index 2bbc0bc..b6647d2 100755 --- a/lib/Travelynx/Model/Journeys.pm +++ b/lib/Travelynx/Model/Journeys.pm @@ -547,6 +547,11 @@ sub get { if ( $opt{verbose} ) { my $rename = $self->{renamed_station}; for my $stop ( @{ $ref->{route} } ) { + if ( $stop->[0] =~ m{^Betriebsstelle nicht bekannt (\d+)$} ) { + if ( my $s = $self->{stations}->get_by_eva($1) ) { + $stop->[0] = $s->{name}; + } + } if ( $rename->{ $stop->[0] } ) { $stop->[0] = $rename->{ $stop->[0] }; } |