summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-12-12 19:57:14 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-12-12 19:57:14 +0100
commite91495775ca2d30e1b9c52307e1b219699d353dd (patch)
tree09d384e182bcae2241bdeb670fe894783361e5bf /lib
parentfc9562f7901deb04afb548f9a02a314f4e1dc27a (diff)
Journeys: Handle "Betriebsstelle nicht bekannt"
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx/Model/Journeys.pm5
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] };
}