Unverified Commit e9149577 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Journeys: Handle "Betriebsstelle nicht bekannt"

parent fc9562f7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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] };
				}