diff options
author | Daniel Friesel <derf@finalrewind.org> | 2023-01-29 18:03:26 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2023-01-29 18:03:26 +0100 |
commit | a5e8635aba5012d3cf9b56f82d5e96e9049ce133 (patch) | |
tree | 45a32211e287e3a71a9e48e6aca73435b0337583 /lib | |
parent | 053b68dc0439e19fdd35ea2a0eb742fa0ab07c3e (diff) |
Journey: fix is_cancelled in station board mode
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Journey.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm index b48853b..2bda87e 100644 --- a/lib/Travel/Status/DE/HAFAS/Journey.pm +++ b/lib/Travel/Status/DE/HAFAS/Journey.pm @@ -185,9 +185,11 @@ sub new { if ( $journey->{stbStop} ) { if ( $hafas->{arrivals} ) { $ref->{origin} = $ref->{route_end}; + $ref->{is_cancelled} ||= $journey->{stbStop}{aCncl}; } else { $ref->{destination} = $ref->{route_end}; + $ref->{is_cancelled} ||= $journey->{stbStop}{dCncl}; } } else { |