summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-10-04 13:04:52 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-10-04 13:04:52 +0200
commitce88fe440c0e39a1bf65d343045b08734e771b72 (patch)
tree15890a1c8af217d599c323a9871c2d653489805c
parentc56d126d89c21c09b731a4e24378e325e93125b5 (diff)
HAFAS "national" trips are also trains
-rwxr-xr-xlib/Travelynx.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index ab1f7ef..926f5a2 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(