From a5e8635aba5012d3cf9b56f82d5e96e9049ce133 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Sun, 29 Jan 2023 18:03:26 +0100
Subject: Journey: fix is_cancelled in station board mode

---
 lib/Travel/Status/DE/HAFAS/Journey.pm | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'lib/Travel/Status/DE/HAFAS')

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 {
-- 
cgit v1.2.3