summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-11 09:37:47 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-11 09:37:47 +0100
commit3469d68df35ce0b6ad8ff74539d6d57d6fc55029 (patch)
treedab9571e4a50dfa116e09cb462dcf9c2543ddb41 /bin
parenta8d165932ea98403ef172be95b483bc6313f5c47 (diff)
hafas: include platform information
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hafas12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/hafas b/bin/hafas
index c2a5a02..7b810fe 100755
--- a/bin/hafas
+++ b/bin/hafas
@@ -320,16 +320,20 @@ for my $res ( @{ $hafas->{results} } ) {
printf( "${output_bold}%s${output_reset} → %s\n",
$sec->name, $sec->direction );
printf(
- "%-5s %-${have_delay}s ab %s\n",
+ "%-5s %-${have_delay}s ab %s%s%s\n",
$sec->dep_datetime->strftime('%H:%M'),
format_delay( $sec->dep_delay ),
- $sec->dep_loc->name
+ $sec->dep_loc->name,
+ $sec->dep_platform ? q{: } : q{},
+ $sec->dep_platform // q{},
);
printf(
- "%-5s %-${have_delay}s an %s\n",
+ "%-5s %-${have_delay}s an %s%s%s\n",
$sec->arr_datetime->strftime('%H:%M'),
format_delay( $sec->arr_delay ),
- $sec->arr_loc->name
+ $sec->arr_loc->name,
+ $sec->arr_platform ? q{: } : q{},
+ $sec->arr_platform // q{},
);
}
elsif ( $sec->type eq 'WALK' ) {