summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-12-26 15:05:35 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-12-26 15:05:35 +0100
commitad54e0585881edb1844883b6171b692a67e4bff5 (patch)
treedf5e14b69b49b97322dd96d422ffaebb566e3f92
parent3d4d74b7922aed22993f07b3aab42a22b05bf4ef (diff)
hafas-m: journey details: use proper line number accessor for ICE services
-rwxr-xr-xbin/hafas-m4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/hafas-m b/bin/hafas-m
index dd5336f..3f6972c 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -386,8 +386,8 @@ elsif ( $opt{journey} ) {
if ( $result->number ) {
printf( " | Zug %s", $result->number );
}
- if ( $result->line ) {
- printf( " | Linie %s", $result->line );
+ if ( $result->line_no ) {
+ printf( " | Linie %s", $result->line_no );
}
say q{};