From ce88fe440c0e39a1bf65d343045b08734e771b72 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Sun, 4 Oct 2020 13:04:52 +0200
Subject: [PATCH] HAFAS "national" trips are also trains

---
 lib/Travelynx.pm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index ab1f7efa..926f5a21 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -2397,13 +2397,15 @@ sub startup {
 			}
 
 			if ( $traewelling->{category}
-				!~ m{^ (?: nationalExpress | regional | suburban ) $ }x )
+				!~ m{^ (?: national | nationalExpress | regional | suburban ) $ }x
+			  )
 			{
-				$self->log->debug("... status is not a train");
+				$self->log->debug(
+					"... status is not a train, but $traewelling->{category}");
 				$self->traewelling->log(
 					uid => $uid,
 					message =>
-"$traewelling->{line} nach $traewelling->{arr_name} ist keine Zugfahrt",
+"$traewelling->{line} nach $traewelling->{arr_name}  ist keine Zugfahrt (HAFAS-Kategorie '$traewelling->{category}')",
 					status_id => $traewelling->{status_id},
 				);
 				$self->traewelling->set_latest_pull_status_id(
-- 
GitLab