Journeys: Handle "Betriebsstelle nicht bekannt"
This commit is contained in:
parent
fc9562f790
commit
e91495775c
1 changed files with 5 additions and 0 deletions
|
@ -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] };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue