diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-06-11 19:38:13 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-06-11 19:38:13 +0200 |
commit | 50f934b9090be5a99de331ee28f11783fcf4b870 (patch) | |
tree | 65be3c5ffdecf991f2375592e186c6bdbaa7ce64 /lib/Travel/Status | |
parent | 52a79eaae8c38d4fd26b0c41cb124ebcf9dcb4bd (diff) | |
parent | c31dd4e994aadda148b45788513a80e53ad467a3 (diff) |
Merge branch 'marudor-message14'
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r-- | lib/Travel/Status/DE/IRIS/Result.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm index f532bf6..d5b1d73 100644 --- a/lib/Travel/Status/DE/IRIS/Result.pm +++ b/lib/Travel/Status/DE/IRIS/Result.pm @@ -30,6 +30,9 @@ my %translation = ( 11 => 'Unwetter', 12 => 'Warten auf Fahrgäste aus einem Schiff', 13 => 'Pass- und Zollkontrolle', + + # https://twitter.com/gleis3a/status/1138174888726925312 + 14 => 'Technische Störung am Bahnhof', 15 => 'Beeinträchtigung durch Vandalismus', 16 => 'Entschärfung einer Fliegerbombe', 17 => 'Beschädigung einer Brücke', @@ -280,7 +283,7 @@ sub set_ar { } if ( $attrib{route_pre} ) { - $self->{route_pre} = [ split( qr{[|]}, $attrib{route_pre} // q{} ) ]; + $self->{route_pre} = [ split( qr{[|]}, $attrib{route_pre} // q{} ) ]; $self->{route_start} = $self->{route_pre}[0]; } else { @@ -342,7 +345,7 @@ sub set_dp { if ( $attrib{route_post} ) { $self->{route_post} = [ split( qr{[|]}, $attrib{route_post} // q{} ) ]; - $self->{route_end} = $self->{route_post}[-1]; + $self->{route_end} = $self->{route_post}[-1]; } else { $self->{route_post} = $self->{sched_route_post}; @@ -643,7 +646,7 @@ sub info { my ($self) = @_; my @messages = sort keys %{ $self->{messages} }; - my @ids = uniq( map { $self->{messages}{$_}->[2] } @messages ); + my @ids = uniq( map { $self->{messages}{$_}->[2] } @messages ); my @info = map { $self->translate_msg($_) } @ids; |